question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(s3): Add support for transfer acceleration

See original GitHub issue

The S3 module does not currently have support for setting transfer acceleration status on a bucket. Cloudformation already has support for this AWS::S3::Bucket AccelerateConfiguration

Use Case

Needed to enable transfer acceleration on S3 bucket.

Proposed Solution

Propose adding an enum for TransferAccelerationStatus:

export enum TransferAccelerationStatus {
  /**
   * Transfer acceleration is suspended.
   */
  Suspended = 'Suspended',
  /**
   * Transfer acceleration is enabled.
   */
  Enabled = 'Enabled',
}

Along with support in construct props for Bucket:

const bucket = new s3.Bucket(this, "uploads", {
  accelerationStatus: s3.TransferAccelerationStatus.Enabled,
  // ...
});

associated property:

transferAccelerationStatus

and method:

public configureTransferAcceleration(status: TransferAccelerationStatus): void

s3.configureTransferAcceleration(s3.TransferAccelerationStatus.Enabled);

Other

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:11
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ffxsamcommented, Aug 2, 2021

One quick note: that should be:

accelerationStatus: 'Enabled',
1reaction
christophgysincommented, Aug 2, 2021

That would work, allthough addPropertyOverride is meant for properties that are supported by CloudFormation but missing from the spec. In this case it’s even possible to set the property in a type-safe way:

const bucket = new s3.Bucket(this, 'Bucket')
const cfnBucket = bucket.node.defaultChild as s3.CfnBucket
cfnBucket.accelerateConfiguration = {
  accelerationStatus: 'Enabled',
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Enabling and using S3 Transfer Acceleration
You can use Amazon S3 Transfer Acceleration transfer files quickly and securely over long distances between your client and an S3 bucket.
Read more >
Enable faster uploads and downloads with your S3 Bucket
You can enable transfer acceleration through the console, API, SDK, or CLI. Only the bucket owner or a user with the permission ...
Read more >
Enabling and using S3 Transfer Acceleration - 亚马逊云科技
You can use Amazon S3 Transfer Acceleration transfer files quickly and securely over long distances between your client and an S3 bucket.
Read more >
S3 Transfer Acceleration - Trend Micro
Choose Enable under Transfer acceleration to enable the Transfer Acceleration feature for the selected Amazon S3 bucket. · Copy the new accelerated endpoint...
Read more >
S3 Transfer Acceleration Error (code 3011) | Knowledge Base
Using Amazon S3 Console · In the Buckets list, select the bucket that you want to enable transfer acceleration for. · Click Properties....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found