S3 Lifecycle Rule Keeps Disappearing in AWS Console

94 Views Asked by At

I am trying to transition a bucket full of Standard Tier storage class objects to Intelligent-Tirering class objects one time. I created the following Lifecycle Rule to transition them all:

enter image description here

This appears in my Lifecycle rules list, I have correctly have 2 rules:

enter image description here

But when I return in around 1 hour the rule is missing and the transition hasn't happened. I have only one original rule remaining again.

enter image description here

Why does it keep disappearing/deleting? and how do I fix this to transition the objects to the Intelligent-Tirering storage class?

2

There are 2 best solutions below

0
alexmcfarlane On BEST ANSWER

With some help from @allan-chua and Laravel Vapor support it looks like Vapor clears the lifecycle rules of any managed buckets on deployment. There are 2 solutions here:

  1. In my case, I can set the lifecycle rule and not deploy until it has been executed.
  2. Remove the bucket from the vapor.yml file and manually update the filesystem config in the environment instead.
2
Allan Chua On

I suspect there's some sort of automation that removes your lifecycle rule (Check with your infra, devops or security teams). You could use CloudTrail to check which principal is deleting your S3 lifecycle rule(s).

See:

Viewing recent CloudTrail management events in the CloudTrail console