This module creates the following resources. It automatically fetches the first 2 AZ's and create the resources.
- VPC
- Internet Gateway
- 2 public subnets
- 1 public route table
- 2 private subnets
- 1 private route table
- 2 database subnets
- 1 database route table
- 1 Elastic IP
- 1 NAT gateway in 1a az
- Association between public subnets and public route table
- Association between private subnets and private route table
- Association between database subnets and database route table
subnets: [project_name]-public/private/database-1a/1b
route tables: [project_name]-public/private/database
Project_name (Required) - User must provide his project name
vpc_cidr (Optional) - Default value is 10.0.0.0/16
vpc_tags (Optional) - User can provide tags, other wise empty
public_subnet_cidr (Required) - User must provide 2 valid subnet CIDR
public_subnet_tags (Optional) - User can provide tags, other wise empty
private_subnet_cidr (Required) - User must provide 2 valid subnet CIDR
private_subnet_tags (Optional) - User can provide tags, other wise empty
database_subnet_cidr (Required) - User must provide 2 valid subnet CIDR
database_subnet_tags (Optional) - User can provide tags, other wise empty
private_route_table_tags (Optional) - User can provide tags, other wise empty
public_route_table_tags (Optional) - User can provide tags, other wise empty
database_route_table_tags (Optional) - User can provide tags, other wise empty
vpc_id - This is the ID of VPC created