Skip to content

Commit 9abb08d

Browse files
ajardinantonbabenko
authored andcommitted
Improve documentation about the usage of external NAT gateway IPs (terraform-aws-modules#66)
1 parent fa68b2f commit 9abb08d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,14 @@ module "vpc" {
7676
7777
enable_nat_gateway = true
7878
single_nat_gateway = false
79+
reuse_nat_ips = true # <= Skip creation of EIPs for the NAT Gateways
7980
external_nat_ip_ids = ["${aws_eip.nat.*.id}"] # <= IPs specified here as input to the module
8081
}
8182
```
8283

8384
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).
8485
If, on the other hand, `single_nat_gateway = true`, then `aws_eip.nat` would only need to allocate 1 IP.
85-
Passing the IPs into the module is done by setting variable `external_nat_ip_ids = ["${aws_eip.nat.*.id}"]`.
86+
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}"]`.
8687

8788
Terraform version
8889
-----------------

0 commit comments

Comments
 (0)