Created
October 17, 2014 15:52
-
-
Save garnaat/11004f5661b4798d27c7 to your computer and use it in GitHub Desktop.
Find all untagged EC2 instances
This file contains hidden or 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
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