code-dumps/terraform/aws-vpc/README.md

23 lines
711 B
Markdown
Raw Normal View History

2020-04-23 10:36:56 +08:00
# Terraform config for creating VPC and subnets
2020-04-23 10:40:08 +08:00
These config will create the following resources on AWS. The VPC CIDR is hard-coded as 10.0.0.0/16. The subnets will sit in different availablity zones for redundancy. Resources are all tagged from a globaltag list.
2020-04-23 10:36:56 +08:00
* 1 VPC
2020-04-23 10:40:08 +08:00
* public subnets in all AZs
* private subnets in all AZs
2020-04-23 10:36:56 +08:00
* 1 internet gateway
* 1 nat gateway
## Variables to TF
These are required variables:
```
aws_access_key = "redacted"
aws_secret_key = "redacted"
aws_region = "ap-southeast-1"
resource_prefix = "project1-dev"
```
## Revision notes
2020-04-23 10:40:08 +08:00
* Previously terraform plan would fail to compute the count for routing table association. This is now corrected by setting count = number of AZs