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.