Commit 1a5a5a52 authored by Anton Babenko's avatar Anton Babenko

Updated Terraform versions in README

parent 615fb5cf
...@@ -32,9 +32,9 @@ Sponsored by [Cloudcraft - the best way to draw AWS diagrams](https://cloudcraft ...@@ -32,9 +32,9 @@ Sponsored by [Cloudcraft - the best way to draw AWS diagrams](https://cloudcraft
## Terraform versions ## Terraform versions
For Terraform 0.12 use version `v2.*` of this module. Terraform 0.12. Pin module version to `~> v2.0`. Submit pull-requests to `master` branch.
If you are using Terraform 0.11 you can use versions `v1.*`. Terraform 0.11. Pin module version to `~> v1.0`. Submit pull-requests to `terraform011` branch.
## Usage ## Usage
...@@ -86,13 +86,13 @@ module "vpc" { ...@@ -86,13 +86,13 @@ module "vpc" {
enable_nat_gateway = true enable_nat_gateway = true
single_nat_gateway = false single_nat_gateway = false
reuse_nat_ips = true # <= Skip creation of EIPs for the NAT Gateways 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 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). 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. 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 two variables `reuse_nat_ips = true` and `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}"`.
## NAT Gateway Scenarios ## NAT Gateway Scenarios
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment