small unix-like command line utilities for interacting with AWS services
Environment Variables
AWS_ACCESS_KEY_ID- your IAM access keyAWS_SECRET_ACCESS_KEY- your IAM secret keyAWS_REGION- region of your bucket (defining prevents an extra lookup)
s3
Usage
s3 cp -r s3://<bucket>/path/ . - copy the contents of remote path/ to local ./path/ (creating the directory if necessary)
s3 cp myfile.html s3://<bucket>/path/myfile.html - upload myfile.html to /path/myfile.html
s3 ls s3:// - list buckets available to your account
s3 ls s3://<bucket>/ - list the contents in the root "directory"
s3 rm s3://<bucket>/path/myfile.html - delete the remote file myfile.html