Posts Tagged Amazon

Provision EC2 instance using boto

Sam Newman recently published a very interesting blog entry on using fabric to apply puppet scripts on remote machines. He left the provision_using_boto() method as an exercise to the reader. That just sounded tempting enough to be a challenge since I hadn’t gotten around to looking at boto. You can find the result of my attempt on GitHub. To be precise aws.py implements the provisioning using boto and fabfile.py drives fabric and puppet. Hope you find it as useful as I have.

Tags: , , , , , , ,

AWS CloudFront invalidation

It is now possible to invalidate objects (files) inĀ AWS CloudFront distributions. Handy when someone, like me, occasionally publishes files with the wrong content type. Here is how I implement this invalidation in python.

Tags: , , , ,

S3DropBox is now on GitHub

I’ve released a new version of my S3DropBox on GitHub. I’ve moved the project to GitHub so that I can have all my current active projects in one place. Check it out in its new home at https://github.com/tomcz/s3dropbox.

This release uses the AWS java libraries. They are finally good enough for me to stop creating my own wheels and vulcanising my own rubber. As a bonus the S3DropBox creates URLs in virtual hosted format (eg. https://mybucket.s3.amazonaws.com/myobject) if the bucket name permits that, uses HTTPS by default and is able to perform multipart uploads so that large files get uploaded faster.

Tags: , , , , ,