AWS CloudFormation
User Guide (API Version 2010-05-15)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

cfn-list-stack-resources

Description

Returns descriptions for all resources of the specified stack.

Note

The cfn-list-stack-resources command returns information about deleted stacks for 90 days after they have been deleted.

Syntax

cfn-list-stack-resources StackName common-options

Options

NameDescriptionRequired

StackName

The name of the stack. Alternatively, you can specify the stack ID.

You can also set this value using -s or --stack-name.

Type: String

Default: None

Yes

Output

The command returns a table that contains the following information:

  • LOGICAL_ID

    The logical name of the resource specified in the template.

  • PHYSICAL_ID

    The name or unique identifier that corresponds to the physical instance ID of the resource.

  • TYPE

    Type of the resource.

  • LAST_UPDATED_TIMESTAMP

    Time when the resource's status was last updated.

  • STATUS

    The current status of the resource.

  • STATUS_REASON

    More information about the resource status. To display this value, you must specify --show-long or --show-xml.

AWS CloudFormation displays errors on stderr.

Examples

Example Request

This example lists the resources in the example-1 stack.

PROMPT> cfn-list-stack-resources example-1

STACK_RESOURCE     LOGICAL_ID      PHYSICAL_ID                       TYPE                           LAST_UPDATED_TIMESTAMP      STATUS
STACK_RESOURCE     example-lb1     stack-1-example-lb1-2052137016    AWS::LoadBalancer              2011-07-11T15:39:56Z   	CREATE_COMPLETE
STACK_RESOURCE     example-lc1     stack-1-example-lc1-2052137016    AWS::LaunchConfiguration       2011-07-11T15:45:00Z        CREATE_COMPLETE