Sub topic 2
Trading commitment for a lower price
This chapter assumes you know what an EC2 instance, an instance family, a Region, and an Availability Zone are. It also assumes you have seen an EC2 bill and know the AWS CLI exists. Here you learn the idea behind every discount model in the tutorial. Later chapters cover each model in detail.
The basic trade
On-Demand pricing charges a fixed rate per second or hour, with no promise from you. You can stop at any time. AWS must keep spare capacity ready for that flexibility, so the rate includes a premium.
A commitment-based discount removes some of that flexibility in exchange for a lower rate. You tell AWS what you will use, and AWS charges less for it. The discount is not free money. You pay for the commitment whether or not you use it.
Three questions describe any pricing model:
- How much do you commit to? Nothing, a spend per hour, or a specific instance configuration.
- For how long? Usually one or three years.
- What risk do you take? Paying for unused commitment, or losing instances to interruption.
The three pricing models
| Model | What you commit to | Typical risk |
|---|---|---|
| On-Demand | Nothing | Highest price per hour |
| Reserved Instances and Savings Plans | One- or three-year usage or spend | Paying for commitment you do not use |
| Spot Instances | Nothing | AWS can reclaim the instance with two minutes' notice |
Spot is the odd one out. It needs no commitment, but you accept interruption risk instead. Reserved Instances (RIs) and Savings Plans need a commitment, but your instances run normally.
What a commitment looks like
Both commitment models share the same shape. You agree to a term, choose how to pay, and then AWS applies the lower rate automatically to matching usage.
- Term. One year or three years. Longer terms give a bigger discount and a longer lock-in.
- Payment option. All Upfront, Partial Upfront, or No Upfront. The more you pay early, the lower the effective hourly rate.
- Matching. Usage that matches your commitment is billed at the discounted rate. Usage beyond it is billed On-Demand.
Reserved Instances commit you to a configuration, such as an instance family or type in a Region. Savings Plans commit you to a dollar amount of spend per hour. Spend commitments are more flexible, because they do not tie you to one instance.
Why unused commitment matters
Suppose you commit to $10 of Savings Plan spend per hour. In an hour when your eligible usage would cost only $7 at the discounted rate, you still pay $10. The extra $3 is wasted. In an hour when it would cost $13, the first $10 is covered and the remaining usage is billed at other rates.
This is why commitments suit steady load. If your usage is steady, you rarely pay for unused commitment. If it spikes and drops, you do better committing to the low point and covering peaks another way.
Common mistakes
- Committing to peak usage. You pay for the commitment during quiet hours. Commit to the steady minimum.
- Ignoring the term. A three-year commitment can outlast the instance type, the application, or the project.
- Treating Spot as a commitment model. Spot has no lock-in, but it has no guarantee either.
- Forgetting that excess is On-Demand. Usage above your commitment is not discounted.
Looking ahead
The next chapters cover Reserved Instances first, then Savings Plans, then Spot. Keep the three questions in mind for each model: what you commit to, for how long, and what risk you take.
Exercise
Your application uses between 4 and 10 instances every hour, and never fewer than 4. Which usage level should a commitment cover, and what happens to the rest?
Show answer
Cover the steady minimum of 4 instances, because you use that much every hour and will not pay for unused commitment. The usage above 4 instances is billed On-Demand, or can be handled with another model such as Spot if the workload tolerates interruption.
Exercise
You commit to $10 per hour of Savings Plan spend, but in one hour your eligible usage is worth only $6 at the discounted rate. What do you pay for the commitment that hour?
Show answer
You pay the full $10. The unused $4 is still billed because a commitment is charged whether or not you use it.