Activity 2: Creating an Ntier Architecture using CF Template contd
- Now lets create public route table
- associate with web1, web2 subnets
- Add a route to internet gateway
- Now lets add private route table
- associate with db1, db2 subnets
- Refer Here for the route table docs
- Refer Here for the changes done and execute the template to create the stack
- Now lets create a security group for virtual machines (ec2 instances) in web subnet
- open port 80 for all
- open port 22 for all
- open port 443 for all
- Execute the template Refer Here for the changes by updating the stack
- Now lets add a security group for mysql database which should open 3306 port to all the vpc range Refer Here for the changes done
- Exercise: We need to create a Db subnet group with atleast two subnets in it. Try adding a resource in the existing template to do the following