Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 524 Bytes

query-stacks-by-tag.md

File metadata and controls

9 lines (6 loc) · 524 Bytes

Query CloudFormation Stacks by Tag

Using the AWS CLI, you can list stacks with associated tags using the describe-stacks command with the --query flag:

aws cloudformation describe-stacks --query 'Stacks[?Tags[?Key == `tagkey` && Value == `tagvalue`]].{StackName: StackName}'

Hat tip to this post and the documentation.