Created
July 3, 2024 15:09
-
-
Save tjmw/c345d8480452cee5311d5fddcd9bd2eb to your computer and use it in GitHub Desktop.
AWS CLI + jq to list alarm names in a cloudformation stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWS_REGION=xxx AWS_PROFILE=xxx aws cloudformation list-stack-resources --stack-name xxx |\ | |
jq -c '.StackResourceSummaries[] | select(.ResourceType == "AWS::CloudWatch::Alarm") | {PhysicalResourceId}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment