aws_ s3_ bucket_ lifecycle_ configuration cost estimation
An S3 lifecycle configuration is free, and it is one of the strongest cost levers in S3: it transitions objects to cheaper storage classes and expires old data automatically.
An aws_
The savings come from the storage-class price ladder. S3 Standard is about $0.023/GB-month; Standard-IA is about $0.0125; Glacier Instant Retrieval is about $0.004; and Glacier Deep Archive is about $0.00099, roughly a 23x difference from Standard. A rule that transitions log data to IA after 30 days and to Glacier after 90 turns a flat bill into a tiered one. Expiration rules go further by deleting objects (and, with versioning, noncurrent versions) after a retention window so you stop paying for them entirely.
There are small charges to be aware of: each lifecycle transition is billed as a request (Glacier transitions cost more per object), and objects moved to IA or Glacier carry a minimum storage duration, so churning tiny objects between classes can cost more than it saves. The rules pay off most on large, cold, long-lived data. c3x reads lifecycle rules alongside bucket storage so it can show the tiered cost and flag buckets that are storing cold data at Standard rates with no lifecycle policy at all.
Terraform example
A minimal but realistic configuration that C3X can estimate.
resource "aws_s3_bucket_lifecycle_configuration" "logs" {
bucket = aws_s3_bucket.logs.id
rule {
id = "tier-and-expire"
status = "Enabled"
transition {
days = 30
storage_class = "STANDARD_IA"
}
transition {
days = 90
storage_class = "GLACIER"
}
expiration {
days = 365
}
}
}Pricing dimensions
What you actually pay for when you provision aws_.
| Dimension | Unit | What's being charged |
|---|---|---|
| Lifecycle configuration | free | Defining and applying lifecycle rules has no charge. $0 |
| Storage saved by tiering | per GB-month | Objects moved to a cheaper class cost far less to store. Standard $0.023 vs Glacier $0.004/GB-month |
| Transition requests | per 1,000 objects | Each transition is billed as a request; Glacier transitions cost more per object. Glacier transition: $0.05/1,000 |
Optimization tips
Common ways to reduce aws_ cost without changing the workload.
Tier cold data down the storage ladder
Up to 95% on cold dataTransition infrequently accessed objects to Standard-IA, then Glacier tiers, matching the retrieval speed you actually need. The price drop from Standard is large.
Expire data you never read again
Add expiration rules for logs, temp files, and old exports so you stop paying storage for objects past their useful life instead of keeping them forever.
Do not churn tiny objects
IA and Glacier have minimum storage durations and per-object transition costs. For many small, short-lived objects, tiering can cost more than it saves; apply rules to large, long-lived data.
FAQ
Does an S3 lifecycle configuration cost money?
The rules are free to define and apply. You only pay the normal request charge for each transition a rule performs, which is tiny compared with the storage savings from moving data to a cheaper class.
How much can S3 lifecycle rules save?
A lot on cold data. Standard is about $0.023/GB-month and Glacier Deep Archive is about $0.00099, roughly 23x cheaper. Transitioning long-lived cold data down the ladder can cut its storage cost by over 90%.
When do lifecycle rules cost more than they save?
When applied to many small, short-lived objects. IA and Glacier carry per-object transition charges and minimum storage durations, so churning tiny objects between classes can outweigh the savings.
Related resources
More AWS resources
Further reading
- S3 storage class comparison: when each tier wins
Six S3 storage classes spanning 99x in per-GB price. Here's when Standard, Intelligent-Tiering, Standard-IA, One Zone-IA, Glacier Instant Retrieval, Glacier Flexible Retrieval, and Deep Archive each make sense, with lifecycle policy patterns.
- S3 request fees explained: when they matter more than storage
PUT is $0.005/1K. GET is $0.0004/1K. For high-frequency small-object workloads, request fees can exceed storage fees by 100x. Here's the full request pricing matrix across all storage classes, when fees dominate, and the architectural patterns that keep them low.
Estimate this resource in your own Terraform
Free, open source, no API key. C3X parses your Terraform and shows line-item cost for every resource, including aws_.