| « PreviousNext » | |
![]() ![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
You can use the cfn-get-metadata helper script to fetch a metadata block from CloudFormation and print it to standard out. You can also print a sub-tree of the metadata block if the you specify a key. However, only top-level keys are supported.
Note
cfn-get-metadata does not require credentials, so you do not need to use the
--access-key, --secret-key, or
--credential-file options.
cfn-get-metadata --access-keyaccess.key\ --secret-keysecret.key\ --credential-file|fcredential.file\ --access-key|kkey\ --stack|-sstack.name.or.id\ --resource|-rlogical.resource.id\ --url|-uservice.url\ --regionregion
| Name | Description | Required |
|---|---|---|
|
|
Name of the Stack. Type: String. Default: None Example: |
Yes |
|
|
The logical resource ID of the resource that contains the metadata. Type: String. Example: |
Yes |
|
|
The region to derive the CloudFormation URL from. Type: String. Default: None Example: |
No |
|
|
AWS Access Key for an account with permission to call DescribeStackResource on CloudFormation. Type: String. Condition: The credential file parameter supercedes this parameter. |
Conditional |
|
|
AWS Secret Key that corresponds to the specified AWS Access Key. Type: String. Condition: The credential file parameter supercedes this parameter. |
Conditional |
|
|
A file that contains both a secret key and an access key. Type: String. Condition: The credential file parameter supercedes the --access-key and --secret-key parameters. |
Conditional |