Last active
December 1, 2015 23:47
-
-
Save bfleming-ciena/75d9e3128b1122d6a4d1 to your computer and use it in GitHub Desktop.
aws describe-tags example --filter option
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
# Seems impossible to find an example like this. Didn't want to use boto, just wanted to use bash to pull the value of a tag out. Holy crap this is long. | |
aws ec2 describe-tags --region us-west-2 --filters '[{"name":"resource-id","values":["i-abc12345"]},{"name":"key","values":["MY_TAG"]}]' | jq '.Tags[].Value' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment