EC2 Purchasing Options
Inkwell's first AWS bill arrives, and the two web servers that run all year cost the full hourly price every hour. A neighbouring startup running the same servers pays far less. They are not getting a secret deal; they are simply buying the same machines a different way.
The rule
Commit for steady, pay as you go for spiky, use spare for patient.
EC2 offers several ways to pay for the same instances:
- On-Demand: no commitment, billed per second for Linux (one-minute minimum). Full price, full flexibility. Right for short, unpredictable or brand-new workloads.
- Savings Plans: you commit to spend a fixed amount per hour for one or three years, and matching usage is billed at a lower rate. Compute Savings Plans apply across instance families, sizes and Regions, so they stay useful as your servers change.
- Reserved Instances: an older commitment model, also one or three years, tied more closely to particular instance attributes. The savings are similar to Savings Plans.
- Spot Instances: AWS's spare capacity at discounts that can reach 90%. The catch: AWS can take the capacity back with a two-minute warning. Right for work that can stop and resume.
- Dedicated Hosts and Dedicated Instances: hardware not shared with other customers, for licensing or compliance needs. They cost more.
- Capacity Reservations: guarantee capacity in a specific zone, billed whether you use it or not.