-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
58 lines (49 loc) · 1.57 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
output "vpc_id" {
value = aws_vpc.default.id
}
output "ready" {
value = join(",",aws_route_table_association.public.*.id)
}
output "public_subnet_id0" {
# work-around for Terraform bug, see http://dexlab.net/pukiwiki/index.php?cmd=read&page=Memo%2FTerraform
# value = "${aws_subnet.public.0.id}"
value = element(aws_subnet.public.*.id, 0)
}
output "public_subnet_id1" {
# work-around for Terraform bug, see http://dexlab.net/pukiwiki/index.php?cmd=read&page=Memo%2FTerraform
# value = "${aws_subnet.public.1.id}"
value = element(aws_subnet.public.*.id, 1)
}
output "public_subnet_ids" {
value = aws_subnet.public.*.id
}
output "lambda_subnet_id0" {
value = var.enable_lambda_subnets ? aws_subnet.lambda[0].id : ""
}
output "lambda_subnet_id1" {
value = var.enable_lambda_subnets ? aws_subnet.lambda[1].id : ""
}
output "lambda_subnet_ids" {
value = var.enable_lambda_subnets ? aws_subnet.lambda[*].id : []
}
output "nat_gateway_private_ips" {
value = var.enable_lambda_subnets ? aws_nat_gateway.gw[*].private_ip : []
}
output "nat_gateway_public_ips" {
value = var.enable_lambda_subnets ? aws_nat_gateway.gw[*].public_ip : []
}
output "db_subnet_group_id" {
value = aws_db_subnet_group.db_subnet_group.id
}
output "ssh_access_security_group_id" {
value = aws_security_group.ssh_access.id
}
output "fe_elb_security_group_id" {
value = join(",", aws_security_group.fe_elb.*.id)
}
output "fe_haproxy_security_group_id" {
value = join(",", aws_security_group.fe_haproxy.*.id)
}
output "private_dns_zone_id" {
value = join(",", aws_route53_zone.private_dns.*.zone_id)
}