terraform-example-aws-vpc

An example AWS VPC.

Configuration

This service requires the following data to create a VPC.

  • vpc_cidr_block: This is the CIDR block for the VPC network. This CIDR block is subdivided into multiple subnets. We currently use the largest CIDR block that a VPC can be.

  • vpc_private_subnets: This is the list of CIDR blocks that will be private subnets. Instances in private subnets do not get publicly routable addresses. The length of this list must be the same length as aws_availablity_zones.

  • vpc_public_subnets: This is the list of CIDR blocks that will be public subnets. Instances in these subnets will get publicly routable addresses. The length of this list must be the same length as aws_availablity_zones.

  • private_subnets_allow_all: Toggle allow all security group rule for private subnets.

  • public_subnets_allow_all: Toggle allow all security group rule for public subnets.