I know I’m late to the game on this one, but I recently found s3cmd, a command line interface on to Amazon S3, and life got a little bit easier.
s3cmd using brew, execute the following command:
s3cmd is installed, you need to configure it with your EC2 access keys:
The access keys can be found in the securities section of your EC2 management console.
Once you have the command configured, lets run a UNIX-style
ls of your S3 buckets:
If you want to create a new bucket, you can execute the create bucket command:
Now lets copy a zip file to the new bucket:
And lets make that zip file publicly accessible:
Finally, lets delete the zip file and then the bucket itself:
That’s it! It is an amazing tool that makes script and accesing S3 much easier and enjoyable.