CmdID

CmdID / aws / aws cloudformation

aws cloudformation describe-generated-template

Describes a generated template. AWS CLI reference

1 example 1 option Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To describe a generated template

The following describe-generated-template example describes the specified template.

aws cloudformation describe-generated-template --generated-template-name MyTemplateIdentify
--generated-template-nameThe name or Amazon Resource Name (ARN) of a generated template.
Its output, shortened
{
    "GeneratedTemplateId": "arn:aws:cloudformation:us-west-2:123456789012:generatedTemplate/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
    "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"
            },
… 21 more lines

For more information, see Generating templates from existing resources in the AWS CloudFormation User Guide.

Options

1 in the AWS CLI reference
--generated-template-nameThe name or Amazon Resource Name (ARN) of a generated template.