Adding internet connectivity and Routers to the vpc
- Step 1: Create an internet gateway and attach it to vpc id
- Refer Here for the changeset
- Step 2: Create a public route table & Create a private route table
- Refer Here for the changeset
- Step 3: Add a route to the internet gateway for public route table
- Refer Here for the changeset
- Step 4: Associate public route table to web1 and web2 subnets and private route table to app1, app2, db1 and db2 subnets
- Refer Here for the changeset
- Step 5: Create a public ip address for ec2 instance in web subnet
- Step 6: Web nacl does not open ssh port for communication, so creating a rule to open ssh from anywhere
- Step 7: Accomodate picking ubuntu ami for any region
- Refer Here for the changeset containing the changes to use map
