- Create a Provider for AWS.
- Create a VPC (Virtual Private Cloud in AWS).
- Create a Public Subnet with auto public IP Assignment enabled in custom VPC.
- Create a Private Subnet in custom VPC.
- Create an Internet Gateway for Instances in the public subnet to access the Internet.
- Create a routing table consisting of the information of Internet Gateway.
- Associate the routing table to the Public Subnet to provide the Internet Gateway address.
- Creating an Elastic IP for the NAT Gateway.
- Creating a NAT Gateway for instances in the private subnet to access the Internet (performing source NAT).
- Creating a route table for the Nat Gateway Access which has to be associated with the Instances in the Priavte subnet.
- Associate the routing table to the Private Subnet to provide the Nat Gateway address.
revathycs / terraform-vpc-infrastructure Goto Github PK
View Code? Open in Web Editor NEWThis project forked from 24-komal/terraform-vpc-infrastructure