Skip to content

Commit

Permalink
feat: added new output for net-gatway ip (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
theprashantyadav committed Oct 27, 2023
1 parent ee37bbb commit d1fe5e0
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
7 changes: 6 additions & 1 deletion _example/basic/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@ output "public_tags" {
output "public_subnet_id" {
value = module.subnets.private_subnet_id
description = "The ID of the public subnet"
}
}

output "nat_gateway_private_ip" {
value = module.subnets.nat_gateway_private_ip
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."
}
7 changes: 6 additions & 1 deletion _example/complete/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@ output "public_tags" {
output "public_subnet_id" {
value = module.subnets.private_subnet_id
description = "The ID of the public subnet"
}
}

output "nat_gateway_private_ip" {
value = module.subnets.nat_gateway_private_ip
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."
}
5 changes: 5 additions & 0 deletions _example/private-subnet/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ output "private_tags" {
value = module.private-subnets.private_tags
description = "A mapping of tags to assign to the resource."
}
output "nat_gateway_private_ip" {
value = module.private-subnets.nat_gateway_private_ip
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."
}

7 changes: 6 additions & 1 deletion _example/public-private-subnet-single-nat-gateway/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@ output "public_tags" {
output "public_subnet_id" {
value = module.subnets.private_subnet_id
description = "The ID of the public subnet"
}
}

output "nat_gateway_private_ip" {
value = module.subnets.nat_gateway_private_ip
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."
}
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,8 @@ output "private_acl" {
value = join("", aws_network_acl.private[*].id)
description = "The ID of the network ACL."
}

output "nat_gateway_private_ip" {
value = aws_nat_gateway.private[*].private_ip
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."
}

0 comments on commit d1fe5e0

Please sign in to comment.