A lifecycle rule "expire after 30 days" has been on for months, yet storage is still growing.
IntermediateTroubleshootingS3, EBS and EFS
Answer
Likely causes → The bucket is versioned. Expiring current objects only adds delete markers, so noncurrent versions build up. Other causes: the rule's prefix or tag filter does not match the keys, or the objects are below the minimum size for transitions.
Diagnose →
aws s3api get-bucket-lifecycle-configuration --bucket logs
aws s3api get-bucket-versioning --bucket logs
aws s3api list-object-versions --bucket logs --prefix app/ --max-items 10 \
--query 'Versions[?IsLatest==`false`].[Key,LastModified]'
Fix → Add NoncurrentVersionExpiration (for example, after 7 days) and ExpiredObjectDeleteMarker: true. Correct the filter prefix.
Prevent → Use S3 Storage Lens to watch noncurrent bytes per bucket, and use one standard lifecycle template for versioned buckets.
More on S3, EBS and EFS
`BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system.`Beginner`PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint.`BeginnerA partner account uploads objects into your bucket, but your own admins get `403 Forbidden` reading them.Intermediate`aws s3 cp` gets `An error occurred (AccessDenied) when calling the GetObject operation` but the IAM policy allows `s3:GetObject` and the bucket policy is fine.IntermediateAn S3 static website endpoint returns `403 Forbidden` with `Code: AccessDenied`.IntermediateHigh-throughput writes get `503 SlowDown: Please reduce your request rate.`Intermediate