CodexBloom - Programming Q&A Platform

AWS S3 Lifecycle Policies Not Transitioning Objects As Expected with `s3:ObjectCreated:*` Event

👀 Views: 403 💬 Answers: 1 📅 Created: 2025-07-31
aws s3 lifecycle-policy json

I'm experimenting with Hey everyone, I'm running into an issue that's driving me crazy... I'm having an scenario with AWS S3 lifecycle policies where the lifecycle configuration that I set up is not transitioning objects to the desired storage class after 30 days as expected. I’ve created a bucket and added a lifecycle rule to transition objects to the STANDARD_IA storage class. The rule is applied to all objects with the prefix `uploads/`. Here's the lifecycle configuration I used: ```json { "Rules": [ { "ID": "TransitionToIA", "Prefix": "uploads/", "Status": "Enabled", "Transitions": [ { "Days": 30, "StorageClass": "STANDARD_IA" } ] } ] } ``` After uploading several objects to the `uploads/` prefix a month ago, I noticed that they are still in the STANDARD storage class. I have checked the bucket policy, and there are no conflicting settings. I also confirmed that the objects have the correct prefix and are not being excluded by any other lifecycle rules. I’ve also tried running AWS CLI commands to double-check the lifecycle configuration using: ```bash aws s3api get-bucket-lifecycle-configuration --bucket my-bucket-name ``` The configuration returns as expected, showing the rule for transitioning to STANDARD_IA. Could there be an scenario with the S3 event notifications that I'm not aware of? Or might this be a delay in the lifecycle policy application? Any insights would be greatly appreciated! My development environment is Linux. What am I doing wrong? My team is using Json for this REST API. This is happening in both development and production on Debian. I appreciate any insights!