-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathoutput.tf
58 lines (51 loc) · 1.21 KB
/
output.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 "id" {
value = aws_vpc.main.id
}
# For LB
output "public_subnet_ids" {
value = aws_subnet.public.*.id
}
# For NAT
output "public_egress_subnet_ids" {
value = aws_subnet.public-egress.*.id
}
# For bastion, ECS,etc
output "private_egress_subnet_ids" {
value = aws_subnet.private-egress.*.id
}
# For RDS, etc
output "private_subnet_ids" {
value = aws_subnet.private.*.id
}
# For VPC endpoints
//output "private_route_table_ids" {
// value = concat(
// aws_route_table.private.*.id,
// aws_route_table.private-egress-gateway.*.id,
// aws_route_table.private-egress-instance.*.id,
// aws_route_table.private-egress-none.*.id
// )
//}
//output "intra_route_table_ids" {
// value = aws_route_table.intra.*.id
//}
# For whitelisting on 3rd party services
output "public_ips" {
value = aws_eip.nat.*.public_ip
}
# Used to add additional rules
output "public_nacl_id" {
value = aws_network_acl.public.id
}
output "public_egress_nacl_id" {
value = aws_network_acl.public-egress.id
}
output "private_egress_nacl_id" {
value = aws_network_acl.private-egress.id
}
output "private_nacl_id" {
value = aws_network_acl.private.id
}
output "endpoint_security_group_id" {
value = aws_security_group.endpoint.id
}