Cloudformation Templates continued
- Lets create a security group to open 22 port and 80 port for every one which will be used for ec2 instances in web subnets
- Refer Here for the changeset containing the web ec2 security group
- Now lets create two more security groups
- app ec2 instances. Open 8080 port within vpc cidr range
- db ec2 instance. Open 3306 port with vpc cidr range
- Refer Here for the change set containing the app and db security groups
- Now lets try to create a DB Subnet group: This is group of subnets for creating database. In our case we need to db1 and db2 subnets to db subnet group
- Now lets try to create a database from cloud formation Refer Here
- Refer Here for the changeset to create an rds instance
- Exercise: Try to explore the cloudformation resource syntax for creating an ec2 instance.
