There are more AWS SDK examples available in the AWS Doc SDK Examples
Use CancelUpdateStack
with a CLI
The following code examples show how to use CancelUpdateStack
.
- CLI
-
- AWS CLI
-
To cancel a stack update that is in progress
The following
cancel-update-stack
command cancels a stack update on themyteststack
stack:aws cloudformation cancel-update-stack --stack-name
myteststack
-
For API details, see CancelUpdateStack
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell
-
Example 1: Cancels an update on the specified stack.
Stop-CFNUpdateStack -StackName "myStack"
-
For API details, see CancelUpdateStack in AWS Tools for PowerShell Cmdlet Reference.
-
Actions
ContinueUpdateRollback