The aws-cli tool is very useful for connecting from a command line to AWS services.

S3

List your buckets

aws s3 ls

List files in a bucket

aws s3 ls dsteele/

List files under a key

aws s3 ls dsteele/test

List files recursively

aws s3 ls —recursive dsteele/

Create a bucket

aws s3 mb s3://testing-tutorial

Upload a folder

aws s3 sync local s3://testing-tutorial/local/

Upload a file

aws s3 cp local/foo.txt s3://testing-tutorial/local/foobar.txt

Rename a file

aws s3 mv s3://testing-tutorial/local/foobar.txt s3://testing-tutorial/local/foo/foo.txt

Download a file