[ AWS CLI Command Reference ](../../index.html)

  * [ Home ](../../index.html)
  * [ User Guide ](https://docs.aws.amazon.com/cli/latest/userguide/)
  * [ Forum ](https://forums.aws.amazon.com/forum.jspa?forumID=150)
  * [ GitHub ](https://github.com/aws/aws-cli)

###  Navigation

  * [ index ](../../genindex.html "General Index")
  * [ next ](continue-update-rollback.html "continue-update-rollback") | 
  * [ previous ](batch-describe-type-configurations.html "batch-describe-type-configurations") | 
  * [ AWS CLI 2.15.40 Command Reference ](../../index.html) » 
  * [ aws ](../index.html) » 
  * [ cloudformation ](index.html) » 

  * [ ← batch-describe-type-configurations ](batch-describe-type-configurations.html "previous chapter \(use the left arrow\)") / 
  * [ continue-update-rollback → ](continue-update-rollback.html "next chapter \(use the right arrow\)")

[ ![Amazon Web Services logo](../../_static/logo.png) ](../../index.html)

###  [ Table of Contents ](../../index.html)

  * cancel-update-stack 
    * Description 
    * Synopsis 
    * Options 
    * Global Options 
    * Examples 
    * Output 

###  Quick search

Search box  Search

###  Feedback

Did you find this page useful? Do you have a suggestion to improve the
documentation? [ Give us feedback ](https://docs.aws.amazon.com/forms/aws-doc-
feedback?hidden_service_name=AWS%20Command%20Line%20Interface&hidden_guide_name=Reference&topic_url=https%3A%2F%2Fdocs.aws.amazon.com%2Fcli%2Flatest%2Freference/cloudformation/cancel-
update-stack.html) .  
If you would like to suggest an improvement or fix for the AWS CLI, check out
our [ contributing guide ](https://github.com/aws/aws-
cli/blob/develop/CONTRIBUTING.md) on GitHub.

###  User Guide

First time using the AWS CLI? See the [ User Guide
](https://docs.aws.amazon.com/cli/latest/userguide/) for help getting started.

[ [ aws  ](../index.html#cli-aws) . [ cloudformation  ](index.html#cli-aws-
cloudformation) ]

#  cancel-update-stack  Â¶

##  Description  Â¶

Cancels an update on the specified stack. If the call completes successfully,
the stack rolls back the update and reverts to the previous stack
configuration.

###  Note

You can cancel only stacks that are in the ` UPDATE_IN_PROGRESS  ` state.

See also: [ AWS API Documentation
](https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CancelUpdateStack)

##  Synopsis  Â¶

    
    
      cancel-update-stack
    --stack-name <value>
    [--client-request-token <value>]
    [--cli-input-json | --cli-input-yaml]
    [--generate-cli-skeleton <value>]
    [--debug]
    [--endpoint-url <value>]
    [--no-verify-ssl]
    [--no-paginate]
    [--output <value>]
    [--query <value>]
    [--profile <value>]
    [--region <value>]
    [--version <value>]
    [--color <value>]
    [--no-sign-request]
    [--ca-bundle <value>]
    [--cli-read-timeout <value>]
    [--cli-connect-timeout <value>]
    [--cli-binary-format <value>]
    [--no-cli-pager]
    [--cli-auto-prompt]
    [--no-cli-auto-prompt]
    

##  Options  Â¶

` --stack-name  ` (string)

> ###  Note
>
> If you donât pass a parameter to ` StackName  ` , the API returns a
> response that describes all resources in the account.
>
> The IAM policy below can be added to IAM policies when you want to limit
> resource-level permissions and avoid returning a response when no parameter
> is sent in the request:
>

>> ` {  "Version":  "2012-10-17",  "Statement":  [{  "Effect":  "Deny",
"Action":  "cloudformation:DescribeStacks",  "NotResource":
"arn:aws:cloudformation:*:*:stack/*/*"  }]  }  `

>
> The name or the unique stack ID thatâs associated with the stack.

` --client-request-token  ` (string)

> A unique identifier for this ` CancelUpdateStack  ` request. Specify this
> token if you plan to retry requests so that CloudFormation knows that
> youâre not attempting to cancel an update on a stack with the same name.
> You might retry ` CancelUpdateStack  ` requests to ensure that
> CloudFormation succe