Here is how to enable Amazon S3 Transfer Acceleration on a S3 bucket.

<pre lang="bash">
aws s3api put-bucket-accelerate-configuration \
--bucket bucketname \
--accelerate-configuration Status=Enabled \
--region us-east-1

Use an accelerate endpoint.

<pre lang="bash">
aws configure set default.s3.use_accelerate_endpoint true

To copy files to S3 you can use the default copy.

<pre lang="bash">
aws s3 cp file.txt s3://bucketname/keyname \
--region us-east-1

Or use the acceleration endpoint.

<pre lang="bash">
aws configure set s3.addressing_style virtual
aws s3 cp file.txt s3://bucketname/keyname \
--endpoint-url http://s3-accelerate.amazonaws.com \
--region us-east-1