Amazon AWS and RightScale howto

These days got my first project regarding AWS. I never used before tools like s3sync and s3cmd. Basically these tools allow you to execute commands on the AWS server or to sync with your aws account.
First issue I got was the fact that I didn`t had enviroment variables setup:

export AWS_ACCESS_KEY_ID=your_key_id
export AWS_SECRET_ACCESS_KEY=your_secret_key

Note : older versions of s3sync had : AWS_ACCESS_KEY ..so dont forget to add : _ID

You can create a script like :

#!/bin/bash
export AWS_ACCESS_KEY_ID=your_key_id
export AWS_SECRET_ACCESS_KEY=your_secret_key

s3cmd listbuckets

This will show all buckets you have on your S3 account.

Tags: , , , , ,

Leave a Reply