AWS EC2 purchasing options – On-Demand, Reserved Instances, Savings Plans, and Spot Instances – offer different trade-offs between cost, commitment, and flexibility. This guide shows how to choose the right option for each workload.
EC2 purchasing options compared
| Option | Commitment | Discount vs On-Demand | Best for |
|---|---|---|---|
| On-Demand | None | 0% | Short-term, unpredictable workloads |
| Reserved Instances (1 year) | 1 year | Up to 40% | Steady-state workloads with predictable usage |
| Reserved Instances (3 year) | 3 years | Up to 60% | Long-term, stable workloads |
| Savings Plans (1 year) | 1 year | Up to 32% | Workloads across instance families or regions |
| Savings Plans (3 year) | 3 years | Up to 66% | Long-term workloads with some flexibility |
| Spot Instances | None | Up to 90% | Fault-tolerant, interruptible workloads |
On-Demand Instances
On-Demand lets you pay by the hour or second with no commitment. You can start, stop, or terminate instances at any time. There is no upfront cost and no long-term contract.
Use On-Demand for:
- Development and test environments that run intermittently
- Workloads with unpredictable usage patterns
- Short-term projects with unknown duration
The downside is cost: On-Demand is the most expensive option per hour.
Reserved Instances
Reserved Instances require a commitment to a specific instance family, size, region, and term (1 or 3 years). In exchange, you receive a significant discount compared to On-Demand.
There are three payment options:
- No Upfront: Pay hourly with no upfront payment, but still commit to the term
- Partial Upfront: Pay part upfront, the rest hourly
- All Upfront: Pay the entire term upfront for the maximum discount
Reserved Instances can be standard or convertible:
- Standard RI: Larger discount, but cannot change instance family during the term
- Convertible RI: Smaller discount, but can change instance family, operating system, or tenancy
Use Reserved Instances for steady-state workloads that run 24/7, such as databases, production web servers, and monitoring systems.
Savings Plans
Savings Plans are more flexible than Reserved Instances. You commit to a dollar amount per hour (1 or 3 years) rather than a specific instance type. The discount applies automatically to any eligible usage across instance families, sizes, regions, and even Lambda or Fargate.
Use Savings Plans for:
- Workloads that change instance types over time
- Applications running across multiple regions
- Teams that want simplicity without managing individual reservations
Spot Instances
Spot Instances use unused EC2 capacity at up to 90% discount. AWS can reclaim them with a two-minute notification when capacity is needed elsewhere.
Use Spot Instances for:
- Batch processing jobs that can be interrupted
- CI/CD build agents
- Data analysis and rendering workloads
- Stateless application tiers behind a load balancer
Do not use Spot for:
- Databases that cannot handle sudden termination
- Critical production services without redundancy
- Workloads that cannot checkpoint or resume
How to choose
Start by categorizing your workloads:
| Workload type | Recommended option | Why |
|---|---|---|
| Production database, 24/7 | Reserved Instance (3 year) | Stable, predictable, long-term |
| Web application with variable traffic | Savings Plan (1 year) | Flexible across instance types |
| CI/CD build agents | Spot Instances | Interruptible, cost-sensitive |
| Development environment (business hours only) | On-Demand with scheduling | No commitment needed |
| Batch data processing | Spot Instances | Fault-tolerant, high discount |
Practical cost example
A t3.medium instance in US-East-1 costs approximately:
| Option | Hourly rate | Monthly (730 hours) | Annual |
|---|---|---|---|
| On-Demand | /usr/bin/bash.0416 | 0.37 | 64.42 |
| 1-year Reserved (No Upfront) | /usr/bin/bash.0280 | 0.44 | 45.28 |
| 3-year Reserved (All Upfront) | /usr/bin/bash.0166 | 2.12 | 45.44 |
| Spot (average) | /usr/bin/bash.0125 | .13 | 09.56 |
Rates vary by region and change over time. Check current pricing in the AWS Pricing Calculator before making purchase decisions.
Implementation steps
- Run AWS Cost Explorer to identify your highest-spend EC2 instances
- Categorize instances by workload type using the table above
- Purchase Reserved Instances or Savings Plans for steady-state workloads
- Migrate interruptible workloads to Spot where appropriate
- Use AWS Compute Optimizer for rightsizing recommendations
- Review coverage reports monthly to ensure reservations are being utilized
Important caveats
- Reserved Instances and Savings Plans are financial commitments. You pay for the term even if you stop using the instances.
- Spot Instances can be reclaimed with two minutes’ notice. Design applications to handle interruption.
- Regional pricing varies significantly. Compare rates in your target region before purchasing.
Useful DevStackIO Tools
Calculate and optimize your AWS costs with our free tools:
- JSON Formatter – Format and validate AWS CLI JSON output for cost reports
- YAML Formatter – Format and validate CloudFormation templates for cost optimization
- Base64 Encoder/Decoder – Decode AWS credentials and encoded policies
Related Reading
- Find and Delete Unused AWS EBS Volumes Automatically – Reduce storage costs
- du and df: Find What’s Filling Your Disk on Linux – Debug EBS volume usage
- systemd Service Hardening – Secure EC2 instances