AWS Cloudformation
Overall architecture
- Overview

Create VPC
- Refer Here for the changes done
- Create a stack

- Lets define parameters to make cidr range of vpc dynamic Refer Here for parameters official docs
- To use the parameter use ref function. Refer Here for the changeset

- Updating the properties might lead to
- Replacement: Delete and recreate
- No Interuption: Modify on existing resource.
- Lets add subnets
- Refer Here for the changes done to add web1 subnet.
- Now update the stack



- Refer Here for the changes done to add 3 more subnets

- web1, db1 subnets should be in AZ a and web2 db2 subnets should be in AZ b
- Cloud formation supports AWS specific parameter types
- Use AZ parameter as done in this changeset Refer Here



