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
Also:
```sh
aws macie2 describe-buckets --criteria '{"bucketName":{"eq":["$BUCKET"]}}'
To delete:
aws s3api delete-bucket --bucket $BUCKET
To upload:
aws s3 mv delete-me.txt s3://$BUCKET/delete-me.txt
download:
aws s3 cp s3://bucket/foo.tgz /tmp/foo.tgz
To dump the object to stdout:
aws s3 cp s3://bucket/foo.json -