Skip to content

Instantly share code, notes, and snippets.

@krishnapuppala97
krishnapuppala97 / gist:f1bbac85f2eb7a211d90dbbc4dd867a6
Created April 19, 2023 06:10 — forked from jbesw/gist:f9401b4c52a7446ef1bb71ceea8cc3e8
AWS CloudFormation template to create public/private subnets in a VPC with a NAT Gateway.
# This creates a VPC with two public subnets and two private subnets in two Availability Zones,
# together with a NAT Gateway and associated routing. Change the Availability Zone locations as needed.
# Important: this configures various AWS services and there are costs associated with these services after the Free Tier usage.
# Please see the AWS Pricing pages for details. You are responsible for any AWS costs incurred.
# No warranty is implied in this example.
# Usage from command line:
# aws cloudformation --region <<YOUR-REGION>> create-stack --stack-name vpc- --template-body file://vpc-setup.yaml