This code will create a VPC with two public subnets and two private subnets with internet gateway and natgateway for private subnet to communicate with internet
git clone https://github.com/thedevopsstore/vpc.git
cd vpc
terraform init
terraform plan
terraform apply