By using AWS re:Post, you agree to the Terms of Use
/New to AWS, my lifecycle rule seems to not be applied (Versioned bucket)/

New to AWS, my lifecycle rule seems to not be applied (Versioned bucket)

1

4 days ago i started using S3 for backups. I created a bucket, enabled versioning, blocked all public access and then started to create a lifecyle rule.

The rule i ended up creating is for the entire bucket.
Configuration for "Previous version actions" is:
Day 0:
Objects become noncurrent
Objects transition to Glacier

Day 365:
Objects are permanently deleted

I initially set the transition to glacier to happen on day 1 but none of these settings have taken any effect.
I upload a 2.5gb .tar.gz file to the bucket every day with the same name every time and the previous days show up as versions of the current file but their storage class is still standard. At this rate it's going to cost me quite a bit of money if i cant get it to go to glacier like it should and only keep the current version in S3 standard.

Have i misconfigured something?
Do i have to go to the S3 glacier "panel" and and create a vault or anything?

asked a year ago5 views
2 Answers
0

It seems that as soon as i write on the forum it starts working.

Either it is my change from move to glacer on day 1 to day 0
or it just takes 96+ hours for it to actually move the files.
the 2 oldest files have been moved to glacier. that leaves one old version from yesterday, and the current version from today

Leaving this message for anyone else that has problems with this.

answered a year ago
  • Interesting that you mention 96 hours. I have made a rule that is supposed to work much like yours (on the day after) and it's been 3 days and nothing happened. Will wait 2 more days then...

0

Hello,

Greetings of the day,

I would also like to mention that, Amazon S3 rounds the transition or expiration date of an object to midnight UTC the next day. For example, if you created an object on 1/1/2020 10:30 UTC, and you set the lifecycle rule to transition the object after 3 days, then the transition date of the object is 1/5/2020 00:00 UTC.

However, 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.
[+] https://aws.amazon.com/premiumsupport/knowledge-center/s3-lifecycle-rule-delay/
[+] https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-expire-general-considerations.html

Thank you!!

answered a year 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.

Guidelines for Answering Questions