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 | |
total_size = 0 | |
total_volumes = 0 | |
for volume in skew.scan('arn:aws:ec2:*:*:volume/*'): | |
if not volume.data['Attachments']: | |
total_volumes += 1 | |
total_size += volume.data['Size'] | |
print('%s: %dGB' % (volume.arn, volume.data['Size'])) |
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) |
OlderNewer