When you use Transfer Acceleration, additional data transfer charges might apply. For more information about pricing, see [Amazon S3 pricing](https://aws.amazon.com/s3/pricing/). You can enable [Transfer Acceleration](https://docs.aws.amazon.com/AmazonS3/latest/userguide/transfer-acceleration.html) for fast and secure transfer of files over long distances between your end user device and the S3 bucket. You can override the storage resource for this configuration and then leverage the `useAccelerateEndpoint` parameter to use the accelerated S3 endpoint. ## Override storage resource Start by overriding your storage resources to enable Transfer Acceleration on your S3 bucket. ```sh $ amplify override storage ✅ Successfully generated "override.ts" folder at /amplify/backend/storage/accelerated-bucket ✔ Do you want to edit override.ts file now? (Y/n) · yes Edit the file in your editor: /amplify/backend/storage/accelerated-bucket/override.ts ``` In the generated `override.ts` file use the following CDK snippet to enable transfer acceleration. ```typescript // amplify/backend/storage/accelerated-bucket/override.ts import { AmplifyS3ResourceTemplate } from '@aws-amplify/cli-extensibility-helper'; export function override(resources: AmplifyS3ResourceTemplate) { resources.s3Bucket.accelerateConfiguration = { accelerationStatus: 'Enabled' } } ``` Next, deploy this storage resource: ```sh amplify push ``` ## Upload files using the accelerated S3 endpoint We switch to the accelerated S3 endpoint by using the `useAccelerateEndpoint` parameter set to `true` for the `Storage.put` method. ```javascript const result = await Storage.put("test.txt", "Hello", { useAccelerateEndpoint: true // use accelerated S3 endpoint }); ```