If I've enabled Transfer Acceleration on a bucket, do putObject and getObject automatically use it? (I'm assuming these just use XHR POST behind the scenes.. so really, my question is about the REST API)
So it looks like for the bucket name, instead of just supplying 'myBucket', you give it 'myBucket.s3-accelerate.amazonaws.com'? Or it just automatically attempts acceleration since useAccelerateEndpoint defaults to true?
@ffxsam
Once you've enabled transfer acceleration on your bucket, you will need to configure the S3 client from the SDK to use the accelerate endpoint. By default, it is turned off.
We use the same bucket name you specify, but do change the endpoint.
var s3 = new AWS.S3({useAccelerateEndpoint: true});
Ahh, it is indeed false by default. Thanks for pointing that out!
No problem!
@chrisradek Thank you for posting! Is there documentation for the 'useAccelerateEndpoint' flag? I can't find it on the sdk doc here https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Most helpful comment
@ffxsam
Once you've enabled transfer acceleration on your bucket, you will need to configure the S3 client from the SDK to use the accelerate endpoint. By default, it is turned off.
We use the same bucket name you specify, but do change the endpoint.