Created
September 24, 2019 17:12
-
-
Save CodeFreezr/147cd4de6f34d00e26d8389e4b2ea359 to your computer and use it in GitHub Desktop.
Counts Cloudformation Stacks by Status
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 cloudformation list-stacks | jq '.StackSummaries | [ group_by(.StackStatus)[] | { "status": .[0].StackStatus, "count": (. | length) }]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment