| « PreviousNext » | |
![]() ![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
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.
cfn-list-stack-resources
StackName
common-options
| Name | Description | Required |
|---|---|---|
|
|
The name of the stack. Alternatively, you can specify the stack ID. You can also set this value using Type: String Default: None |
Yes |
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.
This example lists the resources in the example-1 stack.
PROMPT>cfn-list-stack-resources example-1STACK_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