Terraform module provide us with the ease of reusablity of resources. The modules here are capable for permforming the following functions:
- Create a VPC in the provided CIDR block.
- Create an internet gateway for the public subnets and attach it to the VPC.
- Create Public subnets, one for each availability zone in the region.
- Create Private subnets, one for each availability zone in the region.
- Create an Elastic IP and attach it to NAT Gateway.
- Create a public route table with route for public access through Internet gateway for the VPC.
- Create a private Route Table with route for public access through NAT gateway.
- Association of public route table with public subnets.
- Association of private route table with private subnets.
For the terraform configurations for the same, please visit: Reuse-Configuration-Using-Terraform-Modules
Use the following command to clone the repository:
git clone https://github.com/sreehariskumar/AWS-VPC-Modules/