Default S3 lifecycle rules silently fail or overcharge because they ignore the 128 KB small-object floor, 30 to 180 day minimum storage durations, versioning's noncurrent versions, and incomplete multipart uploads. Copy-pasting the console's suggested rule is how teams burn budget or lose data.
| What AWS actually enforces | The number | Why it bites in production |
|---|---|---|
| Objects under 128 KB are not transitioned to Standard-IA or Intelligent-Tiering by default | 128 KB | A "move everything to IA after 30 days" rule silently does nothing for small files |
| Minimum storage duration before early-deletion fees | 30 / 90 / 180 days (Standard-IA / Glacier / Deep Archive) | Transition or delete early and you pay the remainder of the window anyway |
| Lifecycle actions run asynchronously, not at the exact date | Async | "Expired" objects can linger for days; do not rely on lifecycle for compliance timing |
| Glacier first-byte latency | "minutes or hours" (Flexible) / "hours" (Deep Archive) | "Cheap" archive data is not available in real time |
| S3 durability | 99.999999999% (11 nines) | Durability does not protect you from your own expiry rule |
What an S3 Lifecycle Rule Actually Does
An S3 lifecycle rule is a declarative policy attached to a bucket that tells S3 to transition objects to a cheaper storage class after N days, or to expire (delete) them at a set age. You write it once as XML or JSON, attach it to a bucket, and S3 evaluates it on its own schedule. There is no cron to manage and no code to run. That simplicity is exactly why it is dangerous: a rule that is subtly wrong keeps running every day, quietly costing money or deleting data, and nobody notices because nothing throws an error. The rule is also bucket-scoped, so a single misconfigured bucket can affect millions of objects at once. Understanding the mechanics below is the difference between a rule that saves you money and one that surprises you on the bill.
Why the Console's Suggested Rule Is a Trap
The AWS console offers a "suggested" lifecycle configuration when you first open the lifecycle editor, and most teams accept it as a starting point. The trap is that the suggestion optimizes for the happy path: large, stable, infrequently accessed objects living in a bucket with no versioning and no multipart uploads in flight. Real buckets are messier. They hold thumbnails under 128 KB, they have versioning turned on for safety, and they accumulate abandoned multipart uploads from failed large-file writes. The suggested rule assumes none of that, so it produces a configuration that looks responsible in the UI but behaves unexpectedly once your actual object mix hits it. Treat the console suggestion as a template to critique, not a policy to ship. Every production lifecycle rule deserves a second pass against the gotchas in the rest of this article.
What Is the 128 KB Small-Object Floor?
S3 will not transition objects smaller than 128 KB to Standard-IA or Intelligent-Tiering by default. Amazon documents this as a deliberate default: transitioning a tiny object costs a per-request fee that can exceed the storage savings, so S3 skips them unless you explicitly opt in with an ObjectSizeGreaterThan filter. In practice this means a rule that says "move everything to IA after 30 days" does nothing for the majority of objects in a bucket full of small files. Your bill stays on Standard rates while you believe you have optimized. If your workload is genuinely small-object-heavy (logs, thumbnails, sensor readings), you either accept Standard pricing or deliberately lower the floor and accept the transition fee. Either way, measure the object-size distribution before you trust the rule to do what the UI implies.
How Minimum Storage Durations Burn You on Early Deletion
Every cold storage class has a minimum storage duration, and S3 bills you for the full window even if you move or delete the object early. Standard-IA and Intelligent-Tiering carry a 30-day minimum; Glacier Instant Retrieval and Glacier Flexible Retrieval carry 90 days; Glacier Deep Archive carries 180 days. If you transition an object to Glacier after 7 days and then delete it on day 20, you pay for all 90 days of Glacier storage. Worse, you cannot write a single rule that transitions out of a class inside its own minimum window; S3 rejects it. The practical lesson is to match the transition age to how long you actually keep the data. A "transition to IA at 30 days, expire at 45 days" rule pays for a class you barely use. Let the retention period drive the storage class, not the other way around.
What Happens to Noncurrent Versions When Versioning Is On?
With bucket versioning enabled, a lifecycle rule that expires the current version does not delete the object. It adds a delete marker and turns the previous version into a "noncurrent" version that keeps living. If your rule only targets current versions, your bucket quietly fills with historical versions that Standard pricing still applies to. You need a separate NoncurrentVersionExpiration action to actually clean them up, and you can keep a small buffer of recent versions with NewerNoncurrentVersions. The same is true for transitions: NoncurrentVersionTransition controls where old versions go, independently of the current-version rule. Teams that enable versioning for safety and then add a naive expiry rule are often shocked to find their storage growing instead of shrinking. Versioning changes the entire lifecycle calculus, and the console does not warn you about it.
Why Incomplete Multipart Uploads Survive Your Expiration Rule
A standard lifecycle expiration rule does nothing about incomplete multipart uploads. Those are the half-finished large-file writes left behind when an upload is interrupted, and S3 keeps their parts stored and billed until you explicitly clean them up. The only way to stop them is a dedicated AbortIncompleteMultipartUpload action with a DaysAfterInitiation value. Without it, a flaky client that retries a 5 GB upload ten times can leave ten sets of orphaned parts, each billed at Standard rates, completely invisible in your object listing. This is one of the most common and least visible S3 cost leaks. The fix is a one-line lifecycle action, and there is no good reason not to have it on every bucket that accepts large uploads.
How Glacier Retrieval Times Break a "Cheap Archive" Plan
Glacier's low storage price comes with a retrieval cost that is not just dollars but time. Objects in Glacier Flexible Retrieval have a first-byte latency of "minutes or hours," and Glacier Deep Archive is "hours." To read an archived object you must first restore a temporary copy, wait for the restore to complete, and only then download it. If your archive rule was meant to cover data you might need quickly during an incident, you have built a shelf your own team cannot reach in an emergency. The honest design question is whether the data is true cold storage (accessed rarely, delay tolerated) or merely infrequently accessed (still needs millisecond reads). For the latter, Standard-IA or Intelligent-Tiering is the right class, and Glacier is a trap dressed up as a saving.
How RustFS Handles Lifecycle and a Production-Safe Baseline
RustFS is an Apache 2.0, S3-compatible object store you run yourself. Its Lifecycle Management (ILM) is marked Available, and ILM Tiering to a remote S3 target is also Available, so you get the same core levers: age-based transitions and expirations under your own control. The key difference is that RustFS does not ship AWS's six-tier storage-class ladder or a Glacier-style cold archive. Its tiering moves objects to another S3-compatible bucket or endpoint you operate, which means the 128 KB floor and the 30/90/180-day minimum-duration fees are AWS-specific concepts that do not map one-to-one onto RustFS. What carries over is the operational discipline: versioning still needs explicit noncurrent-version cleanup, and large uploads still leave partial parts if you do not manage them. Self-hosting puts the retention and tiering decisions in your hands instead of a provider's class matrix.
Below are three verbatim lifecycle fragments from AWS's own documentation. None alone is a complete safe policy; stack all three on a real bucket and you cover the four silent failures above.
Tiering and expiration, from AWS "Tiering down the storage class over an object's lifetime":
<LifecycleConfiguration>
<Rule>
<ID>example-id</ID>
<Filter><Prefix>logs/</Prefix></Filter>
<Status>Enabled</Status>
<Transition><Days>30</Days><StorageClass>STANDARD_IA</StorageClass></Transition>
<Transition><Days>90</Days><StorageClass>GLACIER</StorageClass></Transition>
<Expiration><Days>365</Days></Expiration>
</Rule>
</LifecycleConfiguration>
Abort incomplete multipart uploads, from AWS "Lifecycle configuration to abort multipart uploads":
<LifecycleConfiguration>
<Rule>
<ID>sample-rule</ID>
<Filter><Prefix>SomeKeyPrefix/</Prefix></Filter>
<Status>Enabled</Status>
<AbortIncompleteMultipartUpload>
<DaysAfterInitiation>7</DaysAfterInitiation>
</AbortIncompleteMultipartUpload>
</Rule>
</LifecycleConfiguration>
Noncurrent version expiration with a version buffer, from AWS "Lifecycle rule for a versioning-enabled bucket":
<LifecycleConfiguration>
<Rule>
<ID>sample-rule</ID>
<Filter><Prefix></Prefix></Filter>
<Status>Enabled</Status>
<NoncurrentVersionExpiration>
<NewerNoncurrentVersions>5</NewerNoncurrentVersions>
<NoncurrentDays>365</NoncurrentDays>
</NoncurrentVersionExpiration>
</Rule>
</LifecycleConfiguration>
Apply any of them with the AWS CLI (substitute your own bucket name):
aws s3api put-bucket-lifecycle-configuration --bucket amzn-s3-demo-bucket --lifecycle-configuration file://lifecycle.json
If you would rather own the storage layer yourself, RustFS runs from a single command. The default credentials are rustfsadmin/rustfsadmin, and you must set your own keys before production:
docker run -d -p 9000:9000 -p 9001:9001 -v $(pwd)/data:/data -v $(pwd)/logs:/logs rustfs/rustfs:latest
FAQ
Do S3 lifecycle rules apply to objects smaller than 128 KB?
No, not by default. S3 skips objects under 128 KB when transitioning to Standard-IA or Intelligent-Tiering. You can opt in with an ObjectSizeGreaterThan filter, but then you pay a transition request fee per object, which often outweighs the savings for tiny files. If your bucket is mostly small objects, the rule will not move them and your bill stays on Standard rates.
Can I avoid Glacier early-deletion fees?
Only by keeping objects in the class past its minimum duration. Standard-IA and Intelligent-Tiering have a 30-day minimum; Glacier Flexible and Instant Retrieval have 90 days; Deep Archive has 180 days. Delete or transition out earlier and S3 charges the remainder of the window. You also cannot write a single rule that transitions out of a class inside its own minimum period; S3 rejects it.
Why are my objects still in Standard after the transition date?
Lifecycle transitions are asynchronous. S3 queues the action when the rule is satisfied, but the physical move can lag by hours or days. For Glacier transitions, billing switches to the destination class at the rule-satisfaction date even before the move completes. If an object looks stuck in Standard, it is usually just waiting in the async queue, not failing.
Does S3 lifecycle delete incomplete multipart uploads automatically?
No. A standard expiration rule ignores incomplete multipart uploads entirely. You must add an explicit AbortIncompleteMultipartUpload action with a DaysAfterInitiation value to clean them up, or the orphaned parts keep billing at Standard rates. This is one of the most common invisible S3 cost leaks.
How many lifecycle rules can one S3 bucket have?
Up to 1,000, and AWS states this limit is not adjustable. In practice the constraint that bites is clarity, not the count: once a bucket carries dozens of overlapping prefix rules, behavior gets hard to predict and harder to audit. Keep rules few, prefix-scoped, and reviewed on a schedule rather than stacking exceptions.
A note on how this was verified
Article type: This is a systematic interpretation of official documentation, not a production hands-on report.
The claims in this article come from Amazon's own S3 documentation (the lifecycle transition general considerations page, the lifecycle configuration examples page, the S3 storage classes page, and the restoring archived objects page) and from the RustFS GitHub README, checked on 2026-11-11. The lifecycle XML fragments and the aws s3api put-bucket-lifecycle-configuration command are quoted verbatim from AWS docs. The RustFS docker run command and default credentials are quoted from the RustFS README.
What was not done hands-on: no live S3 bucket was configured and observed, no lifecycle transition was executed against a real account, no RustFS ILM rule was run, and no billing was simulated. The numbers (128 KB floor, 30/90/180-day minimum durations, Glacier latency, 11 nines durability, 1,000 rules per bucket) are as published by AWS and were not re-measured here. Treat the examples as a starting template: validate them in a test bucket, confirm the behavior against your own object-size distribution and bill, and keep a rollback plan before applying any expiry rule to production data.
One honest gap: RustFS does not provide an AWS-style Glacier cold tier, so the storage-class-specific gotchas above (128 KB floor, minimum durations) do not apply to it; its ILM Tiering moves objects to a remote S3 target you control. The versioning and multipart-discipline warnings still apply to any S3-compatible store.
What lifecycle rule has bitten you in production? Share the war story.
Top comments (1)
This is a genuinely useful checklist, Ethan — and the table at the top is the part I will keep. The 128 KB floor is the trap I would have walked into: a "move everything to IA after 30 days" rule that silently does nothing for small files, while the bill stays exactly where it was, is the worst kind of bug, the kind that looks like it worked.
Two other details stood out. First, incomplete multipart uploads: a flaky client retrying a 5 GB upload ten times leaving ten sets of orphaned parts billing at Standard rates is the sort of leak that never shows up in a dashboard until someone finally looks. Second, "durability does not protect you from your own expiry rule" — eleven nines of durability and one careless lifecycle rule, and your data is still gone. That sentence belongs on a wall.
I also appreciated the verification note being upfront about what was not done hands-on. It made me trust the parts that were quoted from the docs more, not less.
To your closing question: which of these has actually bitten you in production — or if you inherited a bucket tomorrow, would the orphaned multipart uploads be the first thing you checked?