-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathoutputs.tf
53 lines (43 loc) · 1.32 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
output "vpc_id" {
value = aws_vpc.main.id
}
output "sn_public_a_ids" {
value = aws_subnet.sn_public_a.*.id
description = "The ID of the 1st Public Subnet."
}
output "sn_public_b_ids" {
value = aws_subnet.sn_public_b.*.id
description = "The ID of the 2nd Public Subnet."
}
output "sn_public_c_ids" {
value = aws_subnet.sn_public_c.*.id
description = "The ID of the 3rd Public Subnet."
}
output "sn_private_a_ids" {
value = aws_subnet.sn_private_a.*.id
description = "The ID of the 1st Private Subnet."
}
output "sn_private_b_ids" {
value = aws_subnet.sn_private_b.*.id
description = "The ID of the 2nd Private Subnet."
}
output "sn_private_c_ids" {
value = aws_subnet.sn_private_c.*.id
description = "The ID of the 3rd Private Subnet."
}
output "rt_public_id" {
value = aws_route_table.rt_public.id
description = "The ID of the public route table."
}
output "rt_private_id" {
value = aws_route_table.rt_private.id
description = "The ID of the private route table."
}
output "igw_id" {
value = local.create_igw == 1 ? aws_internet_gateway.igw[0].id : ""
description = "The ID of the internet gateway."
}
output "nat_ip" {
value = local.create_nat == 1 ? aws_nat_gateway.natgw[0].public_ip : ""
description = "The IP of the NAT Gateway."
}