Modify the stack--CloudFormation
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
Getting ready
Before going forward into this recipe, make sure you know how you want to update your changes. If you are sure with your changes, then select the direct update method, otherwise it is always preferred to use change sets (as we get time to review the changes).
How to do it...
The following subsection will include how to make use of change sets and direct...