Skip to content

Instantly share code, notes, and snippets.

@garnaat
Created December 12, 2013 00:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save garnaat/7921001 to your computer and use it in GitHub Desktop.
Save garnaat/7921001 to your computer and use it in GitHub Desktop.
Find all instances with a tag name of "component" and then return just the Tags themselves.
aws ec2 describe-instances --filters Name=tag-key,Values=component --query 'Reservations[].Instances[].Tags'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment