Now, we will modify/update the stack. For modifying, we will use the same template and add one more subnet into the VPC. CloudFormation provides two methods for modifying your stack:
- Direct update:
- When you submit the changes, CloudFormation deploys them immediately
- You want to have a quick update on the stack
- Works well when you are sure of the changes
- Change sets:
- Will allow you to preview the changes
- Will not make the changes until you execute the change set
- Provides a JSON formatted document to summarize the changes
- Creates multiple change sets of different changes by providing a modified template