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

feat: tag obsolete files instead of deleting them #399

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

jaulz
Copy link
Contributor

@jaulz jaulz commented Jul 19, 2024

This change tags obsolete files instead of deleting them (see #369). We use copyObject because it resets the time when the object was created and hence triggers the start of the lifecycle rule. Combined with a proper S3 bucket lifecycle rule we can automatically delete these tagged files after a day or so:
image

image

Unfortunately, I am not sure what's the best way to set up this lifecycle rule automatically using this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant