Hey guys! `S3` question. I can’t upload images to...
# help
b
Hey guys!
S3
question. I can’t upload images to the S3 bucket when I set
useAccelerateEndpoint
to
true
. Does anyone has encountered this problem? I can retrieve an upload URL, but I’m not able to upload something with it. The error returned is:
S3 Transfer Acceleration is not configured on this bucket.
Here how I instantiate S3 on function.
const s3 = new AWS.S3({
useAccelerateEndpoint: true,
region: process.env.REGION,
});
Maybe I have to set something on the Bucket Stack?
Ok, it’s working. But I activate it on the AWS S3 UI, I can’t find a way too specify that on the CDK S3 Stack.👀
m
It looks aws cdk does not support transfer acceleration property at this time.
f
@Bma yeah you can do something like this before CDK adds high level support for the acceleration property
Copy code
const bucket = sst.Bucket(...)
bucket.s3Bucket.node.defaultChild.AccelerateConfigurationProperty.AccelerationStatus = "Enabled";