Skip to content

Instantly share code, notes, and snippets.

@shadycuz
Created April 30, 2019 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadycuz/cec53d5a2affcfc202c45e76e65890fe to your computer and use it in GitHub Desktop.
Save shadycuz/cec53d5a2affcfc202c45e76e65890fe to your computer and use it in GitHub Desktop.
Get rendered cfn init files
aws cloudformation describe-stack-resource --stack-name MYSTACK --logical-resource-id MYLC | jq -Cr '.StackResourceDetail.Metadata | fromjson | ."AWS::CloudFormation::Init".MY_INITNAME.files | to_entries[] | {(.key): .value.content }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment