Created
January 4, 2021 19:45
-
-
Save jmhale/46fb212c3256340be6eca2708158dffb to your computer and use it in GitHub Desktop.
Returns all AWS EC2 Instance IDs with pending service events
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 ec2 describe-instance-status --query 'InstanceStatuses[?length(Events || `[]`) > `0`]' | jq -r '.[] | "\(.InstanceId)\t\(.Events[].Code)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment