we are checking if lifecycle policies are applied (compliant) to all prefixes individually ( not inherited from parent bucket) . we are capturing the event from AWS config and if the lifecycle policy is changed. Is there a way to trace which lifecycle rule has changed or which prefix lifecycle has changed. So we dont have to scan all the prefixes in bucket and check the if lifecycle policy is compliant only check the prefix whose rule has changed .
Asked
Active
Viewed 212 times
1 Answers
0
check in cloudtrail if event PutBucketLifecycleConfiguration has been created on bucket. this event PutBucketLifecycleConfiguration is used for creating new bucket lifecycle policy or update existing life cycle policy.

Deepak Gupta
- 387
- 2
- 17
-
But that would be bucket level and i have to check each prefix to check it that prefix is affected due to change in lifecylcle rule. – user184008 Apr 03 '21 at 18:38
-
Yes, You are right. Did you find any other solution ? – Deepak Gupta Apr 13 '21 at 19:23