I read a lot about how to expire(delete) amazon S3 object and tried to setup lifecycle rule to do that, however the objects are not removed, wondering what i did wrong.
i have objects on S3 organized like this:
Amazon S3 > my-test-bucket > my-test-org > a.csv,
b.xml,
c.xsl...
i need to delete all those files in my-test-bucket if they are 365 days old. there are lots of files there more than 2 years old so with this rule those files should be removed.
in the lifecycle rule, i specified adding filter to limit scope my-test-bucket, and in 'Expiration' section, i selected both 'Current version' and 'Previous versions',
- expire current version of object after 365 days from object creation
- permanently delete previous versions after 365 days from becoming a previous version
- the rule applies to prefix 'my-test-bucket'
my-test-bucket is not versioning-enabled.
After all these are done, i kept waiting and waiting but nothing happened. those old files are still there. my questions are:
- when does auto expire happens? every day at midnight or what?
- is there a button that i can push to make it expire objects right away?
- in my case, i have files under my-test-org instead of right under my-test-bucket, will this rule still work? do i have to apply wildcard in the rule to make sure it check on all files in all org folder?
thanks