[ 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 ](import-stacks-to-stack-set.html "import-stacks-to-stack-set") | 
  * [ previous ](get-template.html "get-template") | 
  * [ AWS CLI 2.15.40 Command Reference ](../../index.html) » 
  * [ aws ](../index.html) » 
  * [ cloudformation ](index.html) » 

  * [ ← get-template ](get-template.html "previous chapter \(use the left arrow\)") / 
  * [ import-stacks-to-stack-set → ](import-stacks-to-stack-set.html "next chapter \(use the right arrow\)")

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

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

  * get-template-summary 
    * 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/get-
template-summary.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) ]

#  get-template-summary  Â¶

##  Description  Â¶

Returns information about a new or existing template. The ` GetTemplateSummary
` action is useful for viewing parameter information, such as default
parameter values and parameter types, before you create or update a stack or
stack set.

You can use the ` GetTemplateSummary  ` action when you submit a template, or
you can get template information for a stack set, or a running or deleted
stack.

For deleted stacks, ` GetTemplateSummary  ` returns the template information
for up to 90 days after the stack has been deleted. If the template doesnât
exist, a ` ValidationError  ` is returned.

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

##  Synopsis  Â¶

    
    
      get-template-summary
    [--template-body <value>]
    [--template-url <value>]
    [--stack-name <value>]
    [--stack-set-name <value>]
    [--call-as <value>]
    [--template-summary-config <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  Â¶

` --template-body  ` (string)

> Structure containing the template body with a minimum length of 1 byte and a
> maximum length of 51,200 bytes. For more information about templates, see [
> Template anatomy
> ](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-
> anatomy.html) in the _CloudFormation User Guide_ .
>
> Conditional: You must specify only one of the following parameters: `
> StackName  ` , ` StackSetName  ` , ` TemplateBody  ` , or ` TemplateURL  ` .

` --template-url  ` (string)

> Location of file containing the template