From 760b67593b6c72943a2f8931b11a734f1b911392 Mon Sep 17 00:00:00 2001 From: Alexandre Jardin Date: Tue, 30 Jan 2018 11:22:47 +0100 Subject: [PATCH] Improve documentation about the usage of external NAT gateway IPs --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c543f8cae..50e2eb432 100644 --- a/README.md +++ b/README.md @@ -76,13 +76,14 @@ module "vpc" { enable_nat_gateway = true single_nat_gateway = false + reuse_nat_ips = true # <= Skip creation of EIPs for the NAT Gateways external_nat_ip_ids = ["${aws_eip.nat.*.id}"] # <= IPs specified here as input to the module } ``` Note that in the example we allocate 3 IPs because we will be provisioning 3 NAT Gateways (due to `single_nat_gateway = false` and having 3 subnets). If, on the other hand, `single_nat_gateway = true`, then `aws_eip.nat` would only need to allocate 1 IP. -Passing the IPs into the module is done by setting variable `external_nat_ip_ids = ["${aws_eip.nat.*.id}"]`. +Passing the IPs into the module is done by setting two variables `reuse_nat_ips = true` and `external_nat_ip_ids = ["${aws_eip.nat.*.id}"]`. Terraform version -----------------