[ 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 ](update-stack-instances.html "update-stack-instances") | 
  * [ previous ](update-generated-template.html "update-generated-template") | 
  * [ AWS CLI 2.15.40 Command Reference ](../../index.html) » 
  * [ aws ](../index.html) » 
  * [ cloudformation ](index.html) » 

  * [ ← update-generated-template ](update-generated-template.html "previous chapter \(use the left arrow\)") / 
  * [ update-stack-instances → ](update-stack-instances.html "next chapter \(use the right arrow\)")

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

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

  * 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/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) ]

#  update-stack  Â¶

##  Description  Â¶

Updates a stack as specified in the template. After the call completes
successfully, the stack update starts. You can check the status of the stack
through the DescribeStacks action.

To get a copy of the template for an existing stack, you can use the
GetTemplate action.

For more information about creating an update template, updating a stack, and
monitoring the progress of the update, see [ Updating a Stack
](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-
updating-stacks.html) .

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

##  Synopsis  Â¶

    
    
      update-stack
    --stack-name <value>
    [--template-body <value>]
    [--template-url <value>]
    [--use-previous-template | --no-use-previous-template]
    [--stack-policy-during-update-body <value>]
    [--stack-policy-during-update-url <value>]
    [--parameters <value>]
    [--capabilities <value>]
    [--resource-types <value>]
    [--role-arn <value>]
    [--rollback-configuration <value>]
    [--stack-policy-body <value>]
    [--stack-policy-url <value>]
    [--notification-arns <value>]
    [--tags <value>]
    [--disable-rollback | --no-disable-rollback]
    [--client-request-token <value>]
    [--retain-except-on-create | --no-retain-except-on-create]
    [--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)

> The name or unique stack ID of the stack to update.

` --template-body  ` (string)

> Structure containing the template body with a minimum