A Terraform module that creates a HA two teired VPC in AWS. Both the public and the private subnets are in 3's split among AZ A B and C. The private subnets are each mapped to their own specific GW.
module "aws_ha_vpc" {
source = "github.com/kgirthofer/aws_ha_vpc_terraform?ref=0.1.4"
region = "us-east-1"
vpc_name = "test"
vpc_cidr = "10.0.0.0/16"
vpn_internal_cidr = "10.100.0.0/20"
public_subnet_a_cidr = "10.0.10.0/24"
public_subnet_b_cidr = "10.0.11.0/24"
public_subnet_c_cidr = "10.0.12.0/24"
private_subnet_a_cidr = "10.0.13.0/24"
private_subnet_b_cidr = "10.0.14.0/24"
private_subnet_c_cidr = "10.0.15.0/24"
}
region
- the region to launch the VPC into. (defaultus-east-1
)vpc_cidr
- the cidr notated ip space of the vpc.vpc_name
- the name of the vpc.vpn_internal_cidr
- the local network CIDR for VPN use.public_subnet_a_cidr
- cidr for public subnet apublic_subnet_b_cidr
- cidr for public subnet bpublic_subnet_c_cidr
- cidr for public subnet cprivate_subnet_a_cidr
- cidr for private subnet aprivate_subnet_b_cidr
- cidr for private subnet bprivate_subnet_c_cidr
- cidr for public subnet c
vpc_id
- the id of the vpc