We announced the upcoming end-of-support for the AWS CLI v1. For dates, additional details, and information on how to migrate, please refer to the linked announcement. For more information see the AWS CLI version 2 installation instructions and migration guide.
[ aws . cloudformation ]
Describes a generated template. The output includes details about the progress of the creation of a generated template started by a CreateGeneratedTemplate API action or the update of a generated template started with an UpdateGeneratedTemplate API action.
See also: AWS API Documentation
describe-generated-template
--generated-template-name <value>
[--cli-input-json <value>]
[--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>]
[--v2-debug]
--generated-template-name (string)
The name or Amazon Resource Name (ARN) of a generated template.
--cli-input-json (string)
Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.
--generate-cli-skeleton (string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--v2-debug (boolean)
Enable AWS CLI v2 migration assistance. Prints warnings if the command would face a breaking change after swapping AWS CLI v1 for AWS CLI v2 in the current environment. Prints one warning for each breaking change detected.
To use the following examples, you must have the AWS CLI installed and configured. See the Getting started guide in the AWS CLI User Guide for more information.
Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal’s quoting rules. See Using quotation marks with strings in the AWS CLI User Guide .
To describe a generated template
The following describe-generated-template example describes the specified template.
aws cloudformation describe-generated-template \
--generated-template-name MyTemplate
Output:
{
"GeneratedTemplateId": "arn:aws:cloudformation:us-east-1:123456789012:generatedTemplate/7d881acf-f307-4ded-910e-f8fb49b96894",
"GeneratedTemplateName": "MyTemplate",
"Resources": [
{
"ResourceType": "AWS::EC2::SecurityGroup",
"LogicalResourceId": "EC2SecurityGroup",
"ResourceIdentifier": {
"Id": "sg-1234567890abcdef0"
},
"ResourceStatus": "COMPLETE",
"ResourceStatusReason": "Resource Template complete",
"Warnings": []
},
{
"ResourceType": "AWS::EC2::Instance",
"LogicalResourceId": "EC2Instance",
"ResourceIdentifier": {
"InstanceId": "i-1234567890abcdef0"
},
"ResourceStatus": "COMPLETE",
"ResourceStatusReason": "Resource Template complete",
"Warnings": []
},
{
"ResourceType": "AWS::EC2::KeyPair",
"LogicalResourceId": "EC2KeyPairSshkeypair",
"ResourceIdentifier": {
"KeyName": "sshkeypair"
},
"ResourceStatus": "COMPLETE",
"ResourceStatusReason": "Resource Template complete",
"Warnings": []
}
],
"Status": "COMPLETE",
"StatusReason": "All resources complete",
"CreationTime": "2025-09-23T19:38:06.435000+00:00",
"LastUpdatedTime": "2025-09-23T19:38:10.798000+00:00",
"Progress": {
"ResourcesSucceeded": 3,
"ResourcesFailed": 0,
"ResourcesProcessing": 0,
"ResourcesPending": 0
},
"TemplateConfiguration": {
"DeletionPolicy": "RETAIN",
"UpdateReplacePolicy": "RETAIN"
},
"TotalWarnings": 0
}
For more information, see Generating templates from existing resources in the AWS CloudFormation User Guide.
GeneratedTemplateId -> (string)
The Amazon Resource Name (ARN) of the generated template. The format isarn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, ``arn:aws:cloudformation:us-east-1 :123456789012 :generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc `` .
GeneratedTemplateName -> (string)
The name of the generated template.
Resources -> (list)
A list of objects describing the details of the resources in the template generation.
(structure)
Details about a resource in a generated template
ResourceType -> (string)
The type of the resource, such asAWS::DynamoDB::Table. For the list of supported resources, see Resource type support for imports and drift detection In the CloudFormation User GuideLogicalResourceId -> (string)
The logical id for this resource in the final generated template.ResourceIdentifier -> (map)
A list of up to 256 key-value pairs that identifies the resource in the generated template. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the
primaryIdentifierlist in the resource schema.) The value is the value of that primary identifier. For example, for aAWS::DynamoDB::Tableresource, the primary identifiers isTableNameso the key-value pair could be"TableName": "MyDDBTable". For more information, see primaryIdentifier in the CloudFormation Command Line Interface (CLI) User Guide .key -> (string)
value -> (string)
ResourceStatus -> (string)
Status of the processing of a resource in a generated template.
InProgressThe resource processing is still in progress.
CompleteThe resource processing is complete.
PendingThe resource processing is pending.
FailedThe resource processing has failed.
ResourceStatusReason -> (string)
The reason for the resource detail, providing more information if a failure happened.Warnings -> (list)
The warnings generated for this resource.
(structure)
The warnings generated for a specific resource for this generated template.
Type -> (string)
The type of this warning. For more information, see Resolve write-only properties in the CloudFormation User Guide .
MUTUALLY_EXCLUSIVE_PROPERTIES- The resource requires mutually-exclusive write-only properties. The IaC generator selects one set of mutually exclusive properties and converts the included properties into parameters. The parameter names have a suffixOneOfand the parameter descriptions indicate that the corresponding property can be replaced with other exclusive properties.UNSUPPORTED_PROPERTIES- Unsupported properties are present in the resource. One example of unsupported properties would be a required write-only property that is an array, because a parameter cannot be an array. Another example is an optional write-only property.MUTUALLY_EXCLUSIVE_TYPES- One or more required write-only properties are found in the resource, and the type of that property can be any of several types.Note
Currently the resource and property reference documentation does not indicate if a property uses a type ofoneOforanyOf. You need to look at the resource provider schema.Properties -> (list)
The properties of the resource that are impacted by this warning.
(structure)
A specific property that is impacted by a warning.
PropertyPath -> (string)
The path of the property. For example, if this is for theS3Bucketmember of theCodeproperty, the property path would beCode/S3Bucket.Required -> (boolean)
Iftrue, the specified property is required.Description -> (string)
The description of the property from the resource provider schema.
Status -> (string)
The status of the template generation. Supported values are:
CreatePending- the creation of the template is pending.CreateInProgress- the creation of the template is in progress.DeletePending- the deletion of the template is pending.DeleteInProgress- the deletion of the template is in progress.UpdatePending- the update of the template is pending.UpdateInProgress- the update of the template is in progress.Failed- the template operation failed.Complete- the template operation is complete.
StatusReason -> (string)
The reason for the current template generation status. This will provide more details if a failure happened.
CreationTime -> (timestamp)
The time the generated template was created.
LastUpdatedTime -> (timestamp)
The time the generated template was last updated.
Progress -> (structure)
An object describing the progress of the template generation.
ResourcesSucceeded -> (integer)
The number of resources that succeeded the template generation.ResourcesFailed -> (integer)
The number of resources that failed the template generation.ResourcesProcessing -> (integer)
The number of resources that are in-process for the template generation.ResourcesPending -> (integer)
The number of resources that are still pending the template generation.
StackId -> (string)
The stack ARN of the base stack if a base stack was provided when generating the template.
TemplateConfiguration -> (structure)
The configuration details of the generated template, including the
DeletionPolicyandUpdateReplacePolicy.DeletionPolicy -> (string)
The
DeletionPolicyassigned to resources in the generated template. Supported values are:
DELETE- delete all resources when the stack is deleted.RETAIN- retain all resources when the stack is deleted.For more information, see DeletionPolicy attribute in the CloudFormation User Guide .
UpdateReplacePolicy -> (string)
The
UpdateReplacePolicyassigned to resources in the generated template. Supported values are:
DELETE- delete all resources when the resource is replaced during an update operation.RETAIN- retain all resources when the resource is replaced during an update operation.For more information, see UpdateReplacePolicy attribute in the CloudFormation User Guide .
TotalWarnings -> (integer)
The number of warnings generated for this template. The warnings are found in the details of each of the resources in the template.