Sub topic 7
Compute vs EC2 Instance Savings Plans
This chapter assumes you know what an EC2 instance family and a Region are, and that you have read the previous chapter on how a Savings Plan commits you to a dollar amount of spend per hour. Here you will compare the two plan types that cover EC2 and decide which one fits.
What the commitment looks like
A Savings Plan is a promise to spend a fixed amount per hour, for example $10.00/hour, for one or three years. Usage that the plan covers is billed at the discounted Savings Plans rate. Any usage above the commitment is billed at On-Demand rates. Any commitment you do not use in an hour is lost.
The two EC2-related plan types differ in how much flexibility you keep in exchange for the discount.
Compute Savings Plans
A Compute Savings Plan applies across a wide range of usage. It is not tied to an instance family, size, Region, operating system, or tenancy. It also covers AWS Fargate and AWS Lambda usage.
This means you can:
- Move a workload from
c5.largetom6i.xlargeand keep the discount. - Move a workload from
us-east-1toeu-west-1and keep the discount. - Shift spend from EC2 to Fargate or Lambda and keep the discount.
The discount is lower than the EC2 Instance plan, because AWS carries more of the risk that you change what you run.
EC2 Instance Savings Plans
An EC2 Instance Savings Plan commits you to a single instance family in a single Region, for example the m6i family in us-east-1. Within that scope you still have flexibility:
- Any size in the family (
m6i.large,m6i.4xlarge). - Any Availability Zone in the Region.
- Any operating system and tenancy.
It covers EC2 only. It does not apply to Fargate or Lambda. In return you get the deepest plan discount, which is similar to what Convertible and Standard Reserved Instances offer.
Side-by-side comparison
| Feature | Compute Savings Plan | EC2 Instance Savings Plan |
|---|---|---|
| Instance family | Any | One family |
| Region | Any | One Region |
| Size, OS, tenancy | Any | Any |
| Services covered | EC2, Fargate, Lambda | EC2 only |
| Discount | Lower | Higher |
| Best when | Your fleet changes | Your fleet is stable |
How a plan is applied
AWS applies your commitment each hour to the usage that earns the largest discount first, then moves to the next. EC2 Instance Savings Plans are applied before Compute Savings Plans, so a narrow plan is used up before a broad one.
Checking what you would buy
Cost Explorer can recommend a plan type and commitment based on your history. This command asks for a Compute plan with a one-year term and no upfront payment, using the last 30 days of usage.
aws ce get-savings-plans-purchase-recommendation \
--savings-plans-type COMPUTE_SP \
--term-in-years ONE_YEAR \
--payment-option NO_UPFRONT \
--lookback-period-in-days THIRTY_DAYSTo get a recommendation for the EC2 Instance type, change --savings-plans-type to EC2_INSTANCE_SP. The response includes the suggested hourly commitment and the estimated savings, so you can compare both types for the same usage.
Common mistakes
- Buying an EC2 Instance plan for a fleet you plan to migrate. If you move from
m5tom7g, the old plan stops applying and you pay On-Demand for the new usage. - Committing to your peak instead of your baseline. Unused commitment is wasted every hour.
- Ignoring the non-EC2 benefit. If you run Fargate or Lambda, only a Compute plan covers them.
Exercise
A team runs 40 steady r6i instances in us-east-1 and expects to keep them for three years. A second team runs containers on Fargate and is moving some services to EC2 next year. Which plan type fits each team, and why?
Show answer
The first team fits an EC2 Instance Savings Plan for the r6i family in us-east-1. Their usage is stable, so the deeper discount is worth the narrower scope. The second team fits a Compute Savings Plan. It covers Fargate and EC2 and does not depend on instance family or Region, so the discount follows the workload as it moves.
Exercise
You buy an EC2 Instance Savings Plan for m5 in us-east-1. Six months later you move the workload to m7g in the same Region. What happens to the plan?
Show answer
The plan only applies to the m5 family, so it does not cover m7g usage. The m7g usage is billed On-Demand, and the commitment is wasted unless other m5 usage remains in us-east-1. A Compute Savings Plan would have continued to apply.