Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Lifecycle Policies

Direct answer

Lifecycle policies automatically move objects to cheaper storage classes or delete them after a set age, and clean up old versions and incomplete multipart uploads, keeping object storage costs under control.

When to use this

Use this when objects should move to cheaper tiers or expire automatically.

First 30 seconds

1. Lifecycle policies transition (to cheaper tiers) or expire objects.

2. Expire noncurrent versions and incomplete multipart uploads.

3. Test on prefixes first.

4. Check minimum storage durations/costs.

5. Document retention.

Operational verification

object age/tags → rule → transition/expire

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Object storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformObject storage
Scope / prerequisiteUse this when objects should move to cheaper tiers or expire automatically.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Rules that delete data still needed.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Rules act on age, prefix or tags.
  • Expire old versions too.
  • Clean up incomplete multipart uploads.
Key checks
  • aws s3api get-bucket-lifecycle-configuration --bucket <b> — rules
  • aws s3api put-bucket-lifecycle-configuration --bucket <b> --lifecycle-configuration file://lc.json — set
  • storage class report — transitions
ReferenceHow it works1 section · depth on demand

Reference

aws s3api put-bucket-lifecycle-configuration --bucket b --lifecycle-configuration file://lifecycle.json
aws s3api get-bucket-lifecycle-configuration --bucket b
ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

Lifecycle rules move or delete objects automatically

The AWS S3 documentation describes a lifecycle configuration as bucket-level rules that apply actions to groups of objects. There are two kinds of action. Transition moves objects to another storage class after a set time. Expiration deletes them after a set time.

$ cat lifecycle.json
{ "Rules": [
  { "ID": "logs", "Status": "Enabled", "Filter": { "Prefix": "logs/" },
    "Transitions": [ { "Days": 30, "StorageClass": "STANDARD_IA" }, { "Days": 365, "StorageClass": "GLACIER" } ],
    "Expiration": { "Days": 730 } },
  { "ID": "old-versions", "Status": "Enabled", "Filter": {},
    "NoncurrentVersionExpiration": { "NoncurrentDays": 90 },
    "AbortIncompleteMultipartUpload": { "DaysAfterInitiation": 7 } } ] }
$ aws s3api put-bucket-lifecycle-configuration --bucket app-data --lifecycle-configuration file://lifecycle.json
$ aws s3api get-bucket-lifecycle-configuration --bucket app-data

Documented behaviour to plan for

PointDetail
Existing objectsRules apply to objects already in the bucket, not only to new ones
TimingNot instantaneous; there can be a delay after an object becomes eligible
BillingChanges when the object becomes eligible, even if the action is delayed (Intelligent-Tiering excepted)
Transition costRequest charges per object transitioned
Minimum storage durationExpiring early from some classes still incurs the minimum charge
Bucket policyCannot block lifecycle deletions or transitions in general purpose buckets

Common mistakes

MistakeEffect
Versioned bucket without a noncurrent-version ruleDeleted and overwritten data is kept and billed forever
No abort rule for incomplete multipart uploadsInvisible parts accumulate cost
Transitioning millions of tiny objectsRequest charges exceed the savings
Expiration shorter than backup retentionThe storage deletes data the backup tool still expects

Test a new rule on a prefix with copies of real data first. A rule applies to existing objects on its first evaluation.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works

Lifecycle rules act on objects automatically by age, prefix or tag: transition to cheaper storage classes, expire old versions, abort incomplete multipart uploads or delete objects.

Reference

{ "Rules": [ { "ID": "expire-old", "Status": "Enabled", "Filter": { "Prefix": "logs/" },
    "Transitions": [ { "Days": 30, "StorageClass": "GLACIER" } ],
    "NoncurrentVersionExpiration": { "NoncurrentDays": 90 } } ] }

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docObject storage current

Authoritative/upstream documentation reviewed for bounded claims in Object Storage → Lifecycle Policies. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.snia.org/tech_activities/standards/curr_standards/cdmi · confidence 94%
Confirmation

Confirm action

Continue?