Operations

Archiving files in Amazon S3: Glacier, lifecycle rules and recovery, the complete guide

How to keep years of business files in Amazon S3 cheaply and safely: choosing a Glacier storage class, moving files with lifecycle rules, restoring them, and protecting against deletes.

Founder, developer
October 7, 20267 min read
The short versionPlain termsFor builders

An Amazon Glacier archive today is an S3 object in Glacier Instant Retrieval ($0.004 per GB-month), Flexible Retrieval ($0.0036) or Deep Archive ($0.00099). Price the archive by object count as well as terabytes, send only large and rarely opened files to Deep Archive, let lifecycle rules do the moving, and turn on Versioning before you need it. Decide in advance who can restore files and who can delete them, because those are the two actions an archive gets wrong.

Most business buckets are mostly archive: last year's projects, signed contracts, raw footage, scans nobody has opened since they were uploaded. Keeping all of it in S3 Standard is simple and expensive. Moving it to Glacier is cheap until someone needs a file back the same day, or until millions of small files turn the per-object overhead into the biggest line on the bill.

This guide collects our articles on running an archive in S3, in the order the decisions usually come up: what a Glacier archive is, what it costs, where files should live, how they get moved and brought back, and how to make sure a delete is never final by accident. Prices are for US East (N. Virginia) as of October 2026. For the wider records picture, see enterprise content management on Amazon S3.

What is an Amazon Glacier archive?

Today an Amazon Glacier archive almost always means an object in an S3 bucket stored in one of the three S3 Glacier storage classes. The file keeps its key, its bucket and its permissions; only the storage class changes, and with it the price and how fast you can read it.

The name also belongs to an older standalone service, now called Amazon Glacier, that stores archives in vaults with its own API. AWS stopped accepting new customers for it on December 15, 2025 and points new archives to the S3 Glacier storage classes. Objects in those S3 classes are only reachable through S3, not through the vault service.

  • Glacier Instant Retrieval: $0.004 per GB-month, read in milliseconds like any S3 object, $0.03 per GB retrieved, 90-day minimum, 128 KB minimum billable size
  • Glacier Flexible Retrieval: $0.0036 per GB-month, restore first (minutes to 12 hours), 90-day minimum, 40 KB overhead per object
  • Glacier Deep Archive: $0.00099 per GB-month, restore first (within 12 or 48 hours), 180-day minimum, 40 KB overhead per object
  • For comparison, S3 Standard costs $0.023 per GB-month for the first 50 TB

How much does it cost to archive 1 TB in Glacier?

Storing 1,000 GB for a month costs about $23 in S3 Standard, $4 in Glacier Instant Retrieval, $3.60 in Glacier Flexible Retrieval and $0.99 in Glacier Deep Archive. Over a year, Deep Archive saves about $264 per terabyte against Standard.

Two one-time costs come on top. Each object moved by a lifecycle rule is one transition request: $0.03 per 1,000 into Flexible Retrieval, $0.05 per 1,000 into Deep Archive and $0.02 per 1,000 into Instant Retrieval. That terabyte as 100,000 files of 10 MB costs $5 to move into Deep Archive; as 5 million files of 200 KB it would cost $250, and each file would also carry 40 KB of overhead. Second, deleting or overwriting an object before its minimum duration is billed as if it stayed the full 90 or 180 days.

The S3 bill rarely matches the per-gigabyte price for these reasons, plus retrieval fees and forgotten multipart uploads. Start here before moving anything.

Choose where cold files live

S3 Glacier Deep Archive is the cheapest storage in AWS, at about $1 per terabyte per month, but it has a 180-day minimum and 40 KB of overhead per object. It suits large files kept for years and rarely opened, and costs more than it saves for small files or anything you might delete soon.

Pick Glacier Instant Retrieval when someone may open the file without warning, such as client records you must produce on request. Pick Flexible Retrieval when a wait of minutes to hours is fine and the file may be deleted within six months. Pick Deep Archive for masters, closed projects and records you keep for years and expect to restore rarely.

Move files automatically

Lifecycle rules move objects between storage classes and expire old versions without anyone running a script. In a versioned bucket they also decide how long deleted and overwritten files stay recoverable, so the rule is a retention policy as much as a cost one.

The command below moves everything under projects/ to Deep Archive 180 days after upload. It replaces the bucket's whole lifecycle configuration, so merge it with any rules already there first. Since September 2024, lifecycle rules skip objects smaller than 128 KB by default, because the transition fee would outweigh the savings. Billing at the Glacier rate starts on the day the rule matches, even if the physical move happens later.

aws s3api put-bucket-lifecycle-configuration --bucket amzn-s3-demo-bucket \
  --lifecycle-configuration '{"Rules":[{"ID":"projects-to-deep-archive","Status":"Enabled","Filter":{"Prefix":"projects/"},"Transitions":[{"Days":180,"StorageClass":"DEEP_ARCHIVE"}]}]}'

Bring files back

A file in Glacier Flexible Retrieval or Deep Archive can't be opened until it is restored, which creates a temporary copy that expires after the number of days you choose. While it exists you pay S3 Standard rates for the copy on top of the archive. Plan who can request a restore and who pays for it.

The bullets give AWS's typical restore time and US East price for each tier.

  • Flexible Retrieval Expedited: 1 to 5 minutes for files under 250 MB, $0.03 per GB plus $10 per 1,000 requests
  • Flexible Retrieval Standard: 3 to 5 hours, $0.01 per GB plus $0.05 per 1,000 requests
  • Flexible Retrieval Bulk: 5 to 12 hours, free
  • Deep Archive Standard: within 12 hours, $0.02 per GB plus $0.10 per 1,000 requests
  • Deep Archive Bulk: within 48 hours, $0.0025 per GB plus $0.025 per 1,000 requests

Make deletes recoverable

With Versioning on, a delete only adds a delete marker and an overwrite keeps the old version, so both can be undone. Object Lock goes further and makes versions impossible to delete for a set period. Replication keeps a second copy in another bucket or Region, with rules about what it skips.

Control who can read it

Every S3 object is already encrypted at rest, and archived objects stay encrypted when they change storage class. The choice between SSE-S3 and SSE-KMS changes who can decrypt it and which permissions a download needs, which matters once tools other than the AWS Console read the archive. If an AI assistant will read archived documents, check how Amazon Bedrock retains document data as well.

The solution

Archive cold files with the S3 Savings tool

The BucketDesk S3 Savings tool measures how much of each bucket nobody opens, shows what each bucket would cost in the archive tiers, and sets up the tiering in your own AWS account once you approve it.

  1. Connect

    deploy one CloudFormation stack from the Tools page. It reads bucket settings, storage metrics and your S3 bill.

  2. Compare

    a free, read-only assessment shows the monthly cost of each bucket now and in each archive tier, in dollars.

  3. Apply

    approve a bucket and BucketDesk adds the lifecycle rules, after you confirm you can wait for restores. You can remove its rules at any time.

Try it out now

Nothing is charged until the savings verified on your AWS bill pass $500 in total; after that BucketDesk bills a share of what you save, starting at 10%, for twelve months.

Primary sources

Discussion

0 comments · open to guests · moderated
Comments appear after a quick review.

Liked this? Get the next article by email. No schedule, no digest, one click to leave.

Keep reading

All articles →
Let's chat

Questions? Message directly.