Menu

Your S3 lifecycle rule is enabled, matching, and doing nothing
πŸ“°

Your S3 lifecycle rule is enabled, matching, and doing nothing

DEV Community: awsΒ·Gyan AIΒ·about 7 hours ago
#MLeAtdDP
#devtoaws#devto#dev#objects#rule
Long article (612 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Someone notices the bucket is mostly thumbnails, writes a lifecycle rule to push them to Standard-IA after thirty days, enables it, and moves on. A quarter later the storage line has not moved. The rule is still there. It is still enabled. The prefix still matches.

It is working exactly as designed, and transitioning nothing.

The 128 KB floor

By default, S3 Lifecycle does not transition objects smaller than 128 KB. That is the whole explanation. If your objects are 40 KB thumbnails, the rule matches them, evaluates them, and leaves them in Standard forever.

{ "Rules" : [ { "ID" : "thumbs-to-ia" , "Status" : "Enabled" , "Filter" : { "Prefix" : "thumbs/" } , "Transitions" : [ { "Days" : 30 , "StorageClass" : "STANDARD_IA" } ] } ] }

Enter fullscreen mode

Exit fullscreen mode

Nothing above is wrong. The prefix is right β€” every thumbnail is under thumbs/ . The rule ID is fine; hyphens are legal and IDs are free-form labels. The status is Enabled.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.