Skip to content

S3 lifecycle rule not deleting files on partitions

0

I have a lifecycle rule, using "Limit the scope of this rule using one or more filters" with the filter "bron-123/xyz/*", Expire current versions of objects and Permanently delete noncurrent versions of objects enabled to 1 day, there are partitions in "bron-123/xyz" for example bron-123/xyz/2024/12/01 but none of the files in the partitions are getting deleted

asked 2 years ago181 views

1 Answer
3
Accepted Answer

Hello.

S3 lifecycle rules do not support wildcards using "*".
Therefore, the target file cannot be deleted using the rules you set.
I think setting the prefix to "bron-123/xyz/" will solve the problem.
https://repost.aws/questions/QUccWL3O7zRF6tCh4nAMI9lA/using-wildcard-at-s3-lifecycle-rule#ANkVxm1CvYQh62u1yFnZKw7Q

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.