From 310dd75458710e7f2b500cda9f0b4879feaca0d0 Mon Sep 17 00:00:00 2001 From: Yamil Asusta Date: Fri, 18 Nov 2016 01:28:29 +0000 Subject: [PATCH 1/2] Add output for nat eip --- vpc/main.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vpc/main.tf b/vpc/main.tf index 48cdf2de..c18f732a 100644 --- a/vpc/main.tf +++ b/vpc/main.tf @@ -181,3 +181,8 @@ output "internal_rtb_id" { output "external_rtb_id" { value = "${aws_route_table.external.id}" } + +// The list of EIPs associated with the internal subnets. +output "external_nat_ips" { + value = ["${aws_eip.nat.*.public_ip}"] +} From a6b96f52642f4fb873065afa3a69a7d8697605be Mon Sep 17 00:00:00 2001 From: Yamil Asusta Date: Tue, 22 Nov 2016 01:36:51 +0000 Subject: [PATCH 2/2] Add documentation --- docs.md | 1 + vpc/main.tf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs.md b/docs.md index db1ea782..96054d96 100644 --- a/docs.md +++ b/docs.md @@ -489,6 +489,7 @@ | availability_zones | The list of availability zones of the VPC. | | internal_rtb_id | The internal route table ID. | | external_rtb_id | The external route table ID. | +| external_nat_ips | A comma-separated list of internal NAT Gateways IPs. | # web-service diff --git a/vpc/main.tf b/vpc/main.tf index c18f732a..12a88af7 100644 --- a/vpc/main.tf +++ b/vpc/main.tf @@ -183,6 +183,6 @@ output "external_rtb_id" { } // The list of EIPs associated with the internal subnets. -output "external_nat_ips" { +output "internal_nat_ips" { value = ["${aws_eip.nat.*.public_ip}"] }