AWSAmazon S3Storage

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_s3_bucket_lifecycle_configuration attaches rules to a bucket that automatically transition objects between storage classes and expire them after a set age. The rules themselves cost nothing. Their entire purpose is to lower the S3 storage bill by moving data to cheaper tiers and deleting data you no longer need without anyone having to remember to do it.

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_s3_bucket_lifecycle_configuration.

DimensionUnitWhat's being charged
Lifecycle configurationfreeDefining and applying lifecycle rules has no charge.
$0
Storage saved by tieringper GB-monthObjects moved to a cheaper class cost far less to store.
Standard $0.023 vs Glacier $0.004/GB-month
Transition requestsper 1,000 objectsEach 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_s3_bucket_lifecycle_configuration cost without changing the workload.

Tier cold data down the storage ladder

Up to 95% on cold data

Transition 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

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_s3_bucket_lifecycle_configuration.