Skip to content

Instantly share code, notes, and snippets.

@jadell
Created March 15, 2011 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jadell/871501 to your computer and use it in GitHub Desktop.
Save jadell/871501 to your computer and use it in GitHub Desktop.
AWS Instance ID from tag
# Assuming an instance tagged with Foo=bar
# Using the aws-tools
ec2-describe-tags --filter key=Foo value=bar | cut -f3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment