awscli: Command-line Interface for Amazon Web Services

awscli is a command-line interface for all Amazon Web Services (AWS).

ref:
https://github.com/aws/aws-cli

Configuration

$ pip install awscli

$ aws configure

ref:
https://docs.aws.amazon.com/cli/latest/index.html

S3

$ aws s3 cp ~/Projects/django.js/wheelhouse/django.js-1.0.0-py2.py3-none-any.whl s3://my-deploy/wheels/ --acl "public-read"
$ aws s3 cp db.sqlite3 s3://files.albedo.one/
$ aws s3 cp rawStarringDF.parquet/ s3://files.albedo.one/spark-data/20171028/rawStarringDF.parquet/ --recursive
$ aws s3 cp rawUserInfoDF.parquet/ s3://files.albedo.one/spark-data/20171028/rawUserInfoDF.parquet/ --recursive
$ aws s3 cp rawRepoInfoDF.parquet/ s3://files.albedo.one/spark-data/20171028/rawRepoInfoDF.parquet/ --recursive

$ aws s3 sync ./ s3://files.albedo.one/ --recursive --exclude "*" --include "*.pickle"
$ aws s3 sync ./spark-data/20170903 s3://files.albedo.one/spark-data/20170903 --dryrun
$ aws s3 sync \
./spark-data/20171001/word2VecPipelineModel.parquet \
s3://files.albedo.one/spark-data/20171001/word2VecPipelineModel.parquet \
--dryrun

# sync files between S3 buckets
$ aws s3 sync s3://your_bucket_1/media s3://your_bucket_2/media \
--acl "public-read" \
--exclude "track_audio/*"

$ aws s3 rm s3://your_bucket_1/media/track_audio --recursive

ref:
https://docs.aws.amazon.com/cli/latest/reference/s3/cp.html
https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html
https://docs.aws.amazon.com/cli/latest/reference/s3/rm.html