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

  * [ ← create-change-set ](create-change-set.html "previous chapter \(use the left arrow\)") / 
  * [ create-stack → ](create-stack.html "next chapter \(use the right arrow\)")

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

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

  * create-generated-template 
    * Description 
    * Synopsis 
    * Options 
    * Global Options 
    * 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/create-
generated-template.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) ]

#  create-generated-template  Â¶

##  Description  Â¶

Creates a template from existing resources that are not already managed with
CloudFormation. You can check the status of the template generation using the
` DescribeGeneratedTemplate  ` API action.

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

##  Synopsis  Â¶

    
    
      create-generated-template
    [--resources <value>]
    --generated-template-name <value>
    [--stack-name <value>]
    [--template-configuration <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  Â¶

` --resources  ` (list)

> An optional list of resources to be included in the generated template.
>
> If no resources are specified,the template will be created without any
> resources. Resources can be added to the template using the `
> UpdateGeneratedTemplate  ` API action.
>
> (structure)
>

>> A resource included in a generated template. This data type is used with
the ` CreateGeneratedTemplate  ` and ` UpdateGeneratedTemplate  ` API actions.

>>

>> ResourceType -> (string)

>>

>>> The type of the resource, such as ` AWS::DynamoDB::Table  ` . For the list
of supported resources, see [ IaC generator supported resource types
](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-
import-supported-resources.html) in the _CloudFormation User Guide_

>>

>> LogicalResourceId -> (string)

>>

>>> The logical resource id for this resource in the generated template.

>>

>> ResourceIdentifier -> (map)

>>

>>> A list of up to 256 key-value pairs that identifies the scanned resource.
The key is the name of