Cloudformation (contd..)
- The current state is present over here
- Now the deployments of the architecture can be in any region, but as of now our template has a hard coded values of regions, we need dynamic values there. AWS has parameters which are referred as AWS-Specific parameter types Refer Here
- Now using a specific parameter AZ Name
- For changes made Refer Here
- We need three more subnets for high availability
- websecondary
- appsecondary
- dbsecondary
- Ensure they are from different AZ.
- The changes are over here
- Create a stack from this template
- Lets create an Internet gateway and attach it to our vpc Refer Here for template changes.
- Lets create two route tables and associate them with subnets
- public rt :
- Will have route to internet gateway
- associated with web & web ha subnets
- private rt:
- This will not have route to igw
- will be associated for other subnets
- public rt :
- Refer Here for the changes made.