Created Lifecycle policy for deleting objects but didn't delete

0

I have created a lifecycle policy for deleting the objects

Total Object count 10M

Total Object Size 10TB

Policy Structure

Enter image description here

Data exists in the prefix

Enter image description here

Its been 30 hrs since the policy is enabled but the files are still not deleted

Please help me to figure out if I am missing something

asked a year ago325 views
1 Answer
0
Accepted Answer

Hello,

I checked the screenshot and the Lifecycle rule configuration. I can see you have set it up to expire the current version of the objects after 130 days of it's creation on prefix "frames/1/" . Since the S3 bucket name is not given could you please check if the versioning is enabled or not. If the versioning is enabled please apply the lifecycle rule on the non-current versions of the objects as well.

Moving ahead if the versioning is not enabled the Lifecycle rule seems to be correct. As you have mentioned that you have 10M of objects please note that depending upon the number of objects, actual time of expiration and expiry date set by life cycle rule may differ. However, please be assured that once the rule sets the expiry date you will not be charged for those object storage.

Please note that there might be a delay between when the lifecycle rule is satisfied and when the action for the rule is complete. Changes in billing are applied when the lifecycle rule is satisfied, even if the action hasn't been completed. Examples of this include: - If you have a lifecycle rule for object expiration, then you won't be charged for storage after the object expiration time, even if the object isn't expired immediately.

So, Kindly wait for few more days and please be assured that lifecycle will asynchronously delete the objects and you will not be charged for the objects marked for expiry. Meanwhile in order to check if the Lifecycle rule has been applied or not you can perform head-object API.

aws s3api head-object --bucket bucket-name --key frames/1/objectname
AWS
SUPPORT ENGINEER
answered a year ago
  • Hello, Thank you for the response The bucket was not versioned It seems like the issue was the one you have mentioned in 3rd point. there is a delay between deletion of objects and it's reflection on the metrics. The issue is now resolved. Today I was able to see a dip in metrics of storage consumption so the lifecycle policy is now running properly.

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.

Guidelines for Answering Questions