2 Answers
- Newest
- Most votes
- Most comments
2
I ran into the same issue, and the documentation didn't provide a clear solution.
For a Versioned Bucket, I had to create two Lifecycle Rules.
Rule 1: Delete After 100 Days
Actions:
- Expire current versions of objects
- Permanently delete noncurrent versions of objects
Configure:
- Days after object creation ( 100 days )
- Days after objects become noncurrent ( 1 day )
Rule 2: Cleanup Delete Markers
Actions:
- Delete expired object delete markers or incomplete multipart uploads
Configure:
- Delete expired object delete markers
- Delete incomplete multipart uploads ( 1 day )
answered 4 months ago
0
https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configuration-examples.html
When you specify the Days tag, Amazon S3 automatically performs ExpiredObjectDeleteMarker cleanup when the delete markers are old enough to satisfy the age criteria.
No special configuration required. You can either clean it up as part of the existing retire-current-objects rule, or create a special rule that explicitly targets expired delete markers sooner.
answered 10 months ago
Relevant content
- Accepted Answerasked 6 months ago
- Accepted Answerasked 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
I don't understand what that quote from the documents is supposed to mean. What is the "Days tag" in this context?
Is that the "Days after object creation" parameter in the "Expire current versions of objects" action?