Last active
August 12, 2021 03:18
-
-
Save visualdensity/603be4aa253b1351758b24018cc6a965 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Note how to retrieve the "Name" Tag from the response | |
aws ec2 describe-instances --filters "Name=instance-state-name,Values=running" --query 'Reservations[].Instances[*].[InstanceType,InstanceId, [Tags[?Key==`Name`].Value][0][0] ]' | |
# Alarms | |
aws cloudwatch describe-alarms --query 'MetricAlarms[*].[AlarmName,StateValue]' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment