Use CancelUpdateStack with an AWS SDK or CLI - AWS SDK Code Examples

There are more AWS SDK examples available in the AWS Doc SDK Examples GitHub repo.

Use CancelUpdateStack with an AWS SDK or 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 the myteststack stack:

aws cloudformation cancel-update-stack --stack-name myteststack
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.