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?

mapover
질문됨 3년 전622회 조회
2개 답변
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.

mapover
답변함 3년 전
  • 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!!

AWS
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인