Skip to content

Instantly share code, notes, and snippets.

@bfleming-ciena
Last active December 1, 2015 23:47
Show Gist options
  • Save bfleming-ciena/75d9e3128b1122d6a4d1 to your computer and use it in GitHub Desktop.
Save bfleming-ciena/75d9e3128b1122d6a4d1 to your computer and use it in GitHub Desktop.
aws describe-tags example --filter option
# 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