Skip to content

Commit d1fe5e0

Browse files
feat: added new output for net-gatway ip (#60)
1 parent ee37bbb commit d1fe5e0

File tree

5 files changed

+28
-3
lines changed

5 files changed

+28
-3
lines changed

_example/basic/outputs.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,9 @@ output "public_tags" {
3131
output "public_subnet_id" {
3232
value = module.subnets.private_subnet_id
3333
description = "The ID of the public subnet"
34-
}
34+
}
35+
36+
output "nat_gateway_private_ip" {
37+
value = module.subnets.nat_gateway_private_ip
38+
description = "The private IPv4 address to assign to the NAT Gateway. If you don't provide an address, a private IPv4 address will be automatically assigned."
39+
}

_example/complete/outputs.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,9 @@ output "public_tags" {
3131
output "public_subnet_id" {
3232
value = module.subnets.private_subnet_id
3333
description = "The ID of the public subnet"
34-
}
34+
}
35+
36+
output "nat_gateway_private_ip" {
37+
value = module.subnets.nat_gateway_private_ip
38+
description = "The private IPv4 address to assign to the NAT Gateway. If you don't provide an address, a private IPv4 address will be automatically assigned."
39+
}

_example/private-subnet/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ output "private_tags" {
77
value = module.private-subnets.private_tags
88
description = "A mapping of tags to assign to the resource."
99
}
10+
output "nat_gateway_private_ip" {
11+
value = module.private-subnets.nat_gateway_private_ip
12+
description = "The private IPv4 address to assign to the NAT Gateway. If you don't provide an address, a private IPv4 address will be automatically assigned."
13+
}
14+

_example/public-private-subnet-single-nat-gateway/outputs.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,9 @@ output "public_tags" {
3131
output "public_subnet_id" {
3232
value = module.subnets.private_subnet_id
3333
description = "The ID of the public subnet"
34-
}
34+
}
35+
36+
output "nat_gateway_private_ip" {
37+
value = module.subnets.nat_gateway_private_ip
38+
description = "The private IPv4 address to assign to the NAT Gateway. If you don't provide an address, a private IPv4 address will be automatically assigned."
39+
}

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,8 @@ output "private_acl" {
6060
value = join("", aws_network_acl.private[*].id)
6161
description = "The ID of the network ACL."
6262
}
63+
64+
output "nat_gateway_private_ip" {
65+
value = aws_nat_gateway.private[*].private_ip
66+
description = "The private IPv4 address to assign to the NAT Gateway. If you don't provide an address, a private IPv4 address will be automatically assigned."
67+
}

0 commit comments

Comments
 (0)