Configuration in this directory creates set of VPC resources which may be sufficient for development environment.
There is a public and private subnet created per availability zone in addition to single NAT Gateway shared between all 3 availability zones.
To run this example you need to execute:
$ terraform init
$ terraform plan
$ terraform apply
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.
Name | Description |
---|---|
nat_public_ips | NAT gateways |
private_subnets | Subnets |
public_subnets | List of IDs of public subnets |
vpc_cidr_block | CIDR blocks |
vpc_id | VPC |