Using S3 with Eucalyptus

In order to use S3 with Eucalyptus you can choose mainly between two alternatives. The s3curl tools (https://github.com/eucalyptus/s3curl) or the s3cmd tools (https://github.com/eucalyptus/s3cmd). If you don’t have any specific reason to use s3curl I would recommend you go with s3cmd tools. s3curl tools currently do not support copying directories and this will make your life a little bit harder. This post though, helps you setup s3curl to use with Eucalyptus. For s3cmd you can just follow the instructions on the github repot here.
* These instructions are tested on Eucalyptus 3.4.2 with Ubuntu 12.04.
You can download s3curl here
You first need to install some modules missing – they are specified between lines 20 and 24 on the script. In my case they were:
perl -MCPAN -e "install Digest::HMAC_SHA1"
perl -MCPAN -e "install URI::Escape"

And then you need to edit the s3curl.pl file, commending the @endpoints at line 30 and replacing with:

my @endpoints = ( 'walrus.whatever-is-your-url.com') 

Then for example you can run:

$ s3curl.pl --id=$AWS_ACCESS_KEY --key=$AWS_SECRET_KEY --walrus.whatever-is-your-url.com:8773

For a detailed list of commands you can run with s3curl take a look on the README file.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s