- Create Virtual Private Cloud (VPC) (Links to an external site.).
- Create subnets (Links to an external site.) in your VPC. You must create 3 subnets, each in a different availability zone in the same region in the same VPC.
- Create an Internet Gateway (Links to an external site.) resource and attach the Internet Gateway to the VPC.
- Create a public route table (Links to an external site.). Attach all subnets created to the route table.
- Create a public route in the public route table created above with destination CIDR block 0.0.0.0/0 and internet gateway created above as the target.
- Install and set up AWS command-line interface.
- Create CloudFormation template csye6225-infra.json or csye6225-infra.yml that can be used to set up required networking resources.
- Values should not be hardcoded in your CloudFormation template.
- You must be able to use the same CloudFormation template in the same AWS account and region to create multiple VPCs including all of its resources (listed in the “AWS Networking Setup” section) such as subnets, internet gateway, route table, etc.
aws cloudformation create-stack --stack-name --template-body file://csye6225-infra.yml --parameters file://config.json --profile
- dev for Development environment
- demo for Demo environment
aws cloudformation delete-stack
--stack-name --profile dev