boto

[I'm a little late posting about this one, but it is still a cool feature]

AWS just keeps pumping out features. One of the latest was multi object delete in s3.

Previously, if you wanted to delete multiple objects within an s3 bucket, each delete operation had to be contained in a single API requests... which quite honestly is slow and clunky. If you wanted to delete 5,000 objects you are going to have to make 5,000 API calls.

I love Python. I love Boto. I love EC2.

I often hate having to drill down deep in some loops to get at some attributes of an instance.

To solve this, I used the itertools library in the Python distribution and some list comprehension to do something, like retrieving all instance Ids for a given EC2 account in a given region. Here's how: