| « PreviousNext » | |
![]() ![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Cancels a stack update that is currently in progress (with state UPDATE_IN_PROGRESS). The stack will be rolled back, reverting the configuration of all resources updated up to that point to their configuration before the update.
cfn-cancel-update-stack StackName [--force] [common-options] StackName | --stack-name stack name | -s stack nameThe name or ID of the stack. You can specify the stack name by itself, or preface it with either the
--stack or -s switches. Any of these forms is equivalent.
Type: String.
Required: Yes.
Default: none
Example:
$ cfn-cancel-update-stack example-stack Cancel the stack update without prompting.
Type: Boolean.
Required: No. Default is to prompt before canceling the stack.
Example:
$ cfn-cancel-update-stack example-stack --force cfn-cancel-update-stack returns no output.
If the command is successful, the stack will be rolled back to its configuration before the update and its state will be set to UPDATE_ROLLBACK_COMPLETE.