在打印窗口把「目标」选为「另存为 PDF」即可保存,页面已带 awsgood.com 版权水印。 返回原文

www.awsgood.com

How Much Does EC2 Image Builder Cost? Real Numbers From 100 Builds

2026-11-10 AWS Pricing 约 3 分钟

TL;DR

The billing model: free service, very paid resources

Image Builder is a control plane. It calls RunInstances, runs your component documents over SSM, calls CreateImage, then launches a second instance from that fresh AMI to run your test components. You are billed for what those API calls produce — per-second EC2 time (60-second minimum), EBS volume GB-months prorated to the minute, and snapshots per GB-month.

So a single pipeline execution is not one instance. It is two, sequentially: build then test. Both live inside the subnet and security group from your infrastructure configuration, both use the instance type you declared there, and both keep running if the execution fails and terminateInstanceOnFailure is left at its default of false. That default is where the surprise bills come from in my experience.

There is no per-build fee, no per-pipeline fee, and no Image Builder line item on the invoice at all. If someone tells you Image Builder "costs $99/month", they are quoting a third-party wrapper or confusing it with a marketplace AMI.

What actually drives the number

Three things, in this order: retained AMI versions, build instance size × build duration, and the number of regions. Everything else — S3 logs, the test instance, EBS during the build — rounds to pennies.

Retention is the heavy one because each pipeline run produces a new AMI version, and each version holds a snapshot chain. Snapshot chains are incremental, so version 2 only stores blocks that changed from version 1. In practice a 15 GB AMI that installs a handful of packages per build adds maybe 1–2 GB of delta, but the full 15 GB is what shows up in VolumeSize and what people quote when they estimate. Either way, 40 versions × 15 GB in each of three regions is 1,800 GB of snapshot storage you are paying for every month whether or not you ever launch those AMIs.

Here is the arithmetic I use with clients, at us-east-1 list rates pulled in late 2025. Verify against the current pricing page — region and any private discount will move it.

Line item Approx. unit rate (us-east-1) Small shop: 20 builds/mo, 1 region Busy shop: 100 builds/mo, 3 regions
Build instance, 12–18 min m5.large ~$0.096/hr, `m5

Sources