Skip to content

Commit a0c5818

Browse files
Merge pull request #157 from Ensono/fix/nat-gateway-ips-output
fix: add outputs fot NAT gateway
2 parents acfcdd9 + 3b9c5e7 commit a0c5818

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

aws/modules/infrastructure_modules/vpc/outputs.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,18 @@ output "sorted_vpc_zone_ids_map" {
7373
description = "The sorted AZ Zone IDs as a map"
7474
value = local.sorted_azs_map
7575
}
76+
77+
output "nat_gateway_public_ips" {
78+
description = "NAT Gateway public IPs"
79+
value = [for val in aws_nat_gateway.public : val.public_ip]
80+
}
81+
82+
output "nat_gateway_private_ips" {
83+
description = "NAT Gateway private IPs"
84+
value = [for val in aws_nat_gateway.public : val.private_ip]
85+
}
86+
87+
output "nat_gateway_allocation_ids" {
88+
description = "NAT Gateway EIP allocation IDs"
89+
value = [for val in aws_nat_gateway.public : val.allocation_id]
90+
}

0 commit comments

Comments
 (0)