Skip to content

S3 storage class tiering for a media-heavy WordPress site — decision tree

Standard, IA, Glacier IR, Glacier DA. The wrong tier costs more than Standard once retrieval is counted. Here is the decision tree we use on a WordPress media library.

The WordPress site has 480 GB of uploads in S3, growing 8 GB a month, and most of it is feature imagery and PDF press kits going back six years. The S3 storage line is now the third-largest item on the bill. Someone reads a “save 90% on storage” article and proposes moving the whole bucket to Glacier Deep Archive. That is the wrong fix — the retrieval costs will eat the savings the first time editorial pulls a five-year-old article into a roundup. Here is the decision tree.

What’s happening

S3 storage classes are not just price tiers — they have different retrieval semantics, different minimum storage durations, and different per-request costs. Picking the wrong class for a WordPress media library means storage is cheaper but the bill swings on access patterns the team does not control (an editor pulling a 2019 image into today’s article, a CDN purge that refetches origin, a backup script that lists object metadata).

The four classes that matter for media:

  • S3 Standard. Hot tier. No minimum duration, no retrieval fee, immediate access. The default for anything actively served.
  • S3 Standard-IA (Infrequent Access). Cheaper per GB by roughly 45%. Has a per-GB retrieval fee on every read, a minimum object size of 128 KB billed regardless of actual size, and a 30-day minimum storage duration. Objects deleted before 30 days are still billed for 30 days.
  • S3 Glacier Instant Retrieval. Cheaper than Standard-IA per GB, similar retrieval semantics (millisecond access), higher retrieval fee per GB, 90-day minimum storage duration, 128 KB billing minimum.
  • S3 Glacier Deep Archive. Cheapest per GB. Retrieval takes hours, has a meaningful per-GB retrieval fee, 180-day minimum storage duration, 128 KB billing minimum.

The 128 KB billing minimum is the killer for WordPress. A site full of thumbnails (often 8–30 KB each) is billed as if every thumbnail is 128 KB once it moves out of Standard. If your average object size is small, IA is worse than Standard, not better.

The 30/90/180-day minimum duration is the second killer. Anything you transition and then delete within that window pays for the full minimum. Aggressive lifecycle rules that churn objects produce phantom storage cost.

How to verify

Step 1 — get the size distribution.

S3 Storage Lens (default dashboard, free) or the aws s3api list-objects-v2 pipeline with --query 'Contents[].Size' will give you the size histogram. The question to answer:

  • What percentage of objects are under 128 KB?
  • What is the total byte volume under 128 KB?

If the answer is “most of the objects are under 128 KB but they are a small share of total bytes” (typical WordPress thumbnails), those small objects should stay on Standard. The savings on tiering them are negative once the billing minimum is applied.

Step 2 — get the access pattern.

Enable S3 server access logging or use CloudTrail data events on the bucket. Pull the last 90 days. Group objects by last-access date. The decision tree depends on it:

Accessed in last 30 days           → S3 Standard (no change)
Accessed 30–90 days ago            → candidate for Standard-IA, IF object > 128 KB
Accessed 90–180 days ago           → candidate for Glacier IR, IF object > 128 KB
Not accessed in 180+ days          → candidate for Glacier DA, IF object > 128 KB
                                     and unlikely to be retrieved

Step 3 — separate by content type.

A WordPress media library has at least three populations:

  • Feature images for active posts. Served daily, sit in CDN cache, refetched on origin purge. Standard.
  • Thumbnails generated by WordPress. Many small objects, served via CDN, low individual access cost. Standard (do not tier — the 128 KB minimum will hurt).
  • Old article assets (images, embedded PDFs). The largest population by byte volume and the slowest-moving. Candidates for IA or Glacier IR.
  • One-off downloads — press kits, white papers, archived video. Large objects with rare access. Candidates for Glacier DA if access has been zero for six months and stakeholders accept the retrieval delay.

The fix

Apply lifecycle rules that mirror the decision tree. The S3 Intelligent Tiering class can do this automatically and is the right pick if access patterns vary unpredictably; for a WordPress site with a clear “old content” archive, manual lifecycle rules are usually cheaper because Intelligent Tiering has a per-object monitoring fee.

# lifecycle policy — WordPress media bucket
Rules:
  - Id: keep-recent-on-standard
    Status: Enabled
    Filter:
      Prefix: wp-content/uploads/
    Transitions: []                    # no transition for recent uploads

  - Id: tier-old-images-to-ia
    Status: Enabled
    Filter:
      And:
        Prefix: wp-content/uploads/
        ObjectSizeGreaterThan: 131072  # 128 KB — skip thumbnails
    Transitions:
      - Days: 60
        StorageClass: STANDARD_IA
      - Days: 180
        StorageClass: GLACIER_IR
      - Days: 730
        StorageClass: DEEP_ARCHIVE     # only if access patterns justify it

  - Id: expire-orphaned-multipart
    Status: Enabled
    AbortIncompleteMultipartUpload:
      DaysAfterInitiation: 7

Three rules we apply on every WordPress media bucket:

Never tier objects smaller than 128 KB. The ObjectSizeGreaterThan: 131072 filter is the load-bearing line. Without it, thumbnails get billed at the 128 KB minimum on IA, which is more expensive than Standard.

Wait at least 60 days before the first transition. The 30-day Standard-IA minimum means objects moved at day 30 and accessed at day 35 pay both the retrieval fee and the 30-day minimum. 60 days gives a buffer for the long-tail of “an editor pulls an old article into a roundup” access.

Abort incomplete multipart uploads. WordPress plugins, especially backup plugins, leave incomplete multipart parts behind. They are billed as if completed. A 7-day cleanup costs nothing and recovers storage that would otherwise drift up.

For the special case of “we have 80 GB of old PDFs from press kits that have not been touched in three years,” Glacier Deep Archive is the right answer — accept the retrieval delay, write the runbook for editorial in case they need one, and move on.

The pattern we see in WordPress media buckets after the rules are applied: the Standard tier holds about 25–40% of total bytes (everything actively served), IA and Glacier IR hold the long tail, Deep Archive holds the rarely-touched archive. The storage line typically drops 40–60% without changing what visitors experience.


Stack Harbor runs this lifecycle work as part of enterprise WordPress operations and the underlying media topology on Cloud Compute. If your S3 line is heavier than your traffic justifies, ask for a storage review.