Notes to Self

Alex Sokolsky's Notes on Computers and Programming

AWS Simple Storage Service (S3) CLI

aws s3 ls
export BUCKET=indexer-api-test
aws s3api create-bucket --bucket $BUCKET --region us-east-1 --acl bucket-owner-full-control
aws s3api get-bucket-policy --bucket $BUCKET
aws s3api get-bucket-cors --bucket $BUCKET
aws s3api get-bucket-location --bucket $BUCKET
aws s3api get-bucket-versioning --bucket $BUCKET



aws s3api delete-bucket --bucket $BUCKET

S upload:

aws s3 mv delete-me.txt s3://$BUCKET/delete-me.txt

download:

aws s3 cp s3://bucket/foo.tgz /tmp/foo.tgz