Skip to content

Instantly share code, notes, and snippets.

@garnaat
Created October 17, 2014 15:52
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save garnaat/11004f5661b4798d27c7 to your computer and use it in GitHub Desktop.
Save garnaat/11004f5661b4798d27c7 to your computer and use it in GitHub Desktop.
Find all untagged EC2 instances
import skew
for instance in skew.scan('arn:aws:ec2:*:*:instance/*'):
if not instance.tags:
print('%s is untagged' % instance.arn)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment