/terraform-vpc-3

create vpc using variables and data source

Primary LanguageHCLApache License 2.0Apache-2.0

terraform-vpc-3

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/terraform-vpc-3.git

cd terraform-vpc-3

terraform init

terraform plan -var="ENV=dev" -var="AWS_REGION=us-east-1"

terraform apply -var="ENV=dev" -var="AWS_REGION=us-east-1"