How to set up S3CMD on an Amazon Linux AMI

So, S3CMD is awesome. Whole bunch of commands to use with S3 that are infinietely better than using the Management console. So how do you set it up? Easy, read this blog (picture coming andrewgo).

First, launch an Amazon Linux AMI from the EC2 console. This tutorial assumes you know how to SSH into the instance. Good.

Now, once you are SSH’ed in to your EC2 instance, you would want to perform this command to gain the most recent tools from s3tools.org:

wget http://sourceforge.net/projects/s3tools/files/s3cmd/1.5.0-alpha1/s3cmd-1.5.0-alpha1.tar.gz

This will give you your base install file (s3cmd-1.5.0-alpha1.tar.gz), you then want to issue this command to extract the file:

tar -zxvf s3cmd-1.5.0-alpha1.tar.gz

At this point you have a few different options to install, the easiest (since python is auto installed on Amazon linux) is to issue this command:

sudo python setup.py install

This should have everything set up for you at this point. Now, you only need to configure your access keys, and how you want everything to be sent back and forth. To do this, enter

s3cmd –configure (this will ask you for your access key and secret access key, this is really the only NEEDED information)

After this point, you should be free to issue any of the commands listed here and have fun with S3:

http://linux.die.net/man/1/s3cmd

Random picture per andrewgo:

One thought on “How to set up S3CMD on an Amazon Linux AMI

Leave a Reply

Your email address will not be published. Required fields are marked *