Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create AWS S3 Lifecycle Rules #7177

Open
obrunsmann opened this issue Sep 30, 2024 · 0 comments
Open

Create AWS S3 Lifecycle Rules #7177

obrunsmann opened this issue Sep 30, 2024 · 0 comments
Labels
✨ enhancement New feature or request needs-discussion Further discussion is needed prior to impl 🎨 sdk SDK

Comments

@obrunsmann
Copy link

obrunsmann commented Sep 30, 2024

Use Case

In several cases I need to configure lifecycle rules for automatic expiration of objects in a S3 bucket. For example to clean temporary file uploads after one day.

Proposed Solution

let bucket = new cloud.Bucket(rules: [{
  "id" => "deleteFileUploads",
  "filter" => ["prefix" => "tmp/"],
  "expiration" => ["days" => 7],
}]);

Terraform API:
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_lifecycle_configuration

Implementation Notes

No response

Component

Compiler

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.
  • If this issue is labeled needs-discussion, it means the spec has not been finalized yet. Please reach out on the #dev channel in the Wing Discord.
@obrunsmann obrunsmann added needs-discussion Further discussion is needed prior to impl ✨ enhancement New feature or request labels Sep 30, 2024
@Chriscbr Chriscbr added the 🎨 sdk SDK label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request needs-discussion Further discussion is needed prior to impl 🎨 sdk SDK
Projects
None yet
Development

No branches or pull requests

2 participants