You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _example/basic/outputs.tf
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,4 +31,9 @@ output "public_tags" {
31
31
output"public_subnet_id" {
32
32
value=module.subnets.private_subnet_id
33
33
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."
Copy file name to clipboardExpand all lines: _example/complete/outputs.tf
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,4 +31,9 @@ output "public_tags" {
31
31
output"public_subnet_id" {
32
32
value=module.subnets.private_subnet_id
33
33
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."
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."
Copy file name to clipboardExpand all lines: _example/public-private-subnet-single-nat-gateway/outputs.tf
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,4 +31,9 @@ output "public_tags" {
31
31
output"public_subnet_id" {
32
32
value=module.subnets.private_subnet_id
33
33
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."
Copy file name to clipboardExpand all lines: outputs.tf
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,3 +60,8 @@ output "private_acl" {
60
60
value=join("", aws_network_acl.private[*].id)
61
61
description="The ID of the network ACL."
62
62
}
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."
0 commit comments