💾 Archived View for cfdocs.wetterberg.nu › using-cfn-updating-stacks-changesets-execute.gemini captured on 2021-12-04 at 18:04:22. Gemini links have been rewritten to link to archived content
View Raw
More Information
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
Executing a change set
Search
To make the changes described in a change set to your stack, execute the change set.
After you execute a change set, AWS CloudFormation deletes any additional change sets that are associated with the stack because they are no longer valid for the updated stack. If an update fails, you need to create a new change set.
- Stack Policies and Executing a Change Set*
If you execute a change set on a stack that has a stack policy associated with it, AWS CloudFormation enforces the policy when it updates the stack. You can't specify a temporary stack policy that overrides the existing policy when you execute a change set. To update a protected resource, you must update the stack policy or use the direct update method.
direct update
@
[ Execute a change set for nested stacks \(console\) ]
- To execute a change set for nested stacks \(console\)*
- In the AWS CloudFormation console, in Stacks, choose the name the stack that you want to update. You must choose the stack name associated with the root change set.
- In the navigation pane, choose Change Sets to view a list of the stack's change sets.
- Choose the name of the root change set that you want to execute.
- On the change set's details page, choose Execute.NoteAWS CloudFormation executes the changes described in your root change set and nested change sets, if Enabled for change sets for nested stacks was selected during the Creating a change set process.[Image NOT FOUND]AWS CloudFormation immediately starts updating the stack. The AWS CloudFormation console directs you to the Events tab, where you can monitor the progress of the stack update.
AWS CloudFormation console
Creating a change set
Events
@
[ Execute a change set \(console\) ]
- To execute a change set \(console\)*
- In the AWS CloudFormation console, in Stacks, choose the name the stack that you want to update.
- In the navigation pane, choose Change Sets to view a list of the stack's change sets.
- Choose the name of the change set that you want to execute.
- On the change set's details page, choose Execute.[Image NOT FOUND]AWS CloudFormation immediately starts updating the stack. The AWS CloudFormation console directs you to the Events tab, where you can monitor the progress of the stack update.
AWS CloudFormation console
Events
@
- To execute a change set \(AWS CLI\)*
- Run the aws cloudformation execute-change-set command.Specify the change set ID of the change set that you want to execute, as shown in the following example:The command in the example executes a change set with the ID arn:aws:cloudformation:us-east-1:123456789012:changeSet/SampleChangeSet/1a2345b6-0000-00a0-a123-00abc0abc000.After you run the command, AWS CloudFormation starts updating the stack. To view the stack's progress, use the aws cloudformation describe-stacks command.
aws cloudformation execute-change-set
aws cloudformation describe-stacks