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
* Add secondary CIDR block support using a local variable to derive the vpc id to ensure the CIDR block operations are applied before the CIDR operations
* Add secondary cidr block outputs to module output
* Add the wonderful examples from matthiasr's PR located at #162 all credit goes to them for this wonderful example
* From copy and paste accidentally used variable name that differed from these variables
* Resolve typo in secondary_cidr_blocks
* Fixed README formatting
* Followups for #161
* Added local.vpc_id with description
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -221,6 +221,7 @@ Terraform version 0.10.3 or newer is required for this module to work.
221
221
| redshift_subnet_tags | Additional tags for the redshift subnets | string |`<map>`| no |
222
222
| redshift_subnets | A list of redshift subnets | list |`<list>`| no |
223
223
| reuse_nat_ips | Should be true if you don't want EIPs to be created for your NAT Gateways and will instead pass them in via the 'external_nat_ip_ids' variable | string |`false`| no |
224
+
| secondary_cidr_blocks | List of secondary CIDR blocks to associate with the VPC to extend the IP Address pool | string |`<list>`| no |
224
225
| single_nat_gateway | Should be true if you want to provision a single shared NAT Gateway across all of your private networks | string |`false`| no |
225
226
| tags | A map of tags to add to all resources | string |`<map>`| no |
226
227
| vpc_tags | Additional tags for the VPC | string |`<map>`| no |
@@ -280,6 +281,7 @@ Terraform version 0.10.3 or newer is required for this module to work.
280
281
| vpc_id | VPC |
281
282
| vpc_instance_tenancy | Tenancy of instances spin up within VPC |
282
283
| vpc_main_route_table_id | The ID of the main route table associated with this VPC |
284
+
| vpc_secondary_cidr_blocks | List of secondary CIDR blocks of the VPC |
Configuration in this directory creates set of VPC resources across multiple CIDR blocks.
4
+
5
+
There is a public and private subnet created per availability zone in addition to single NAT Gateway shared between all 3 availability zones.
6
+
7
+
## Usage
8
+
9
+
To run this example you need to execute:
10
+
11
+
```bash
12
+
$ terraform init
13
+
$ terraform plan
14
+
$ terraform apply
15
+
```
16
+
17
+
Note that this example may create resources which can cost money (AWS Elastic IP, for example). Run `terraform destroy` when you don't need these resources.
18
+
19
+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
20
+
21
+
## Outputs
22
+
23
+
| Name | Description |
24
+
|------|-------------|
25
+
| nat_public_ips | NAT gateways |
26
+
| private_subnets | Subnets |
27
+
| public_subnets | List of IDs of public subnets |
28
+
| vpc_cidr_block | CIDR blocks |
29
+
| vpc_id | VPC |
30
+
| vpc_secondary_cidr_blocks | List of secondary CIDR blocks of the VPC |
0 commit comments