EC2 licensing and pricing models
Understanding EC2 pricing models is foundational to AWS cost optimization. Choose the right model based on workload predictability, tolerance for interruption, and licensing/isolation needs.- On‑Demand: Pay for compute by the hour/second with no long-term commitment. Best for unpredictable or short-lived workloads.
- Reserved Instances (RIs): Commit for 1 or 3 years for a significant discount versus On‑Demand. Ideal for predictable, steady-state workloads.
- Dedicated Hosts: Provide physical servers dedicated to your account for license compliance or strict isolation. High cost but required for some licensing scenarios.
- Spot Instances: Purchase spare EC2 capacity at large discounts; instances are interruptible (AWS can reclaim capacity with a short notice). Use for fault-tolerant, non‑urgent jobs like batch processing and large-scale analytics.

Spot Instances deliver the largest per‑unit discount but require interruption handling. Use Spot for checkpointable, retryable, or stateless workloads and combine with On‑Demand or Reserved capacity for baseline reliability.
Quick reference: EC2 pricing models
Reserved Instances — flavors and flexibility
Reserved Instances (RIs) vary by flexibility and discount depth:- Standard RIs: Maximum discount for fixed attributes (instance family/size, OS, tenancy, region). Use when capacity needs are stable.
- Convertible RIs: Allow attribute changes (e.g., instance family, OS, tenancy) across the term for more flexibility with slightly smaller discounts.
- Scheduled RIs: Reserve capacity for recurring time windows (e.g., weekday business hours). Useful for predictable, non‑24/7 workloads.

Savings Plans (compute and instance-level)
Savings Plans are a simpler, more flexible way to commit spend and receive discounts across compute services:- Compute Savings Plans: Apply across EC2 instance sizes, regions, OS, and tenancy and also cover AWS Fargate and AWS Lambda usage. They give broad coverage in exchange for committing to a spend rate over 1 or 3 years.
- EC2 Instance Savings Plans: Offer deeper discounts but are tied to specific instance families and regions — best when you can commit to a family/region mix.


Other AWS services with reservations or commitment options
Many AWS managed services also support reservations or committed capacity to reduce costs when usage is predictable:- Amazon RDS: Reserved DB Instances for long‑running relational databases (MySQL, PostgreSQL, Oracle, SQL Server, etc.).
- Amazon ElastiCache: Reserved nodes for steady caching workloads.
- Amazon OpenSearch Service: Reserve node types or follow Cost Management recommendations for sustained search/analytics workloads.
- Amazon Redshift: Reserved nodes/instances for persistent data warehouses.
- Amazon DynamoDB: Provisioned capacity reservations for predictable throughput.
- Amazon CloudFront: Volume/commitment pricing and enterprise discounts for high-volume CDN usage.

- Stability of usage: Is consumption sustained or highly variable?
- Commitment tolerance: Can you lock in 1–3 years?
- Lifecycle and growth: Will the service scale beyond the reserved baseline?
Commitment-based discounts (RIs and Savings Plans) reduce cost but also reduce flexibility. Only commit when you have high confidence in steady usage or a plan to consume the reserved capacity.
Practical strategies and checklist
- Regularly run Cost Explorer and reservation recommendations to find candidates for RIs or Savings Plans.
- Combine purchase models: cover baseline demand with RIs/Savings Plans and use Spot/On‑Demand for spikes and transient workloads.
- For containerized environments, prefer Compute Savings Plans to simplify coverage across EC2, Fargate, and Lambda.
- Use Spot for distributed, stateless workloads where interruptions are acceptable; add lifecycle hooks and checkpointing as needed.
- Reevaluate convertible reservations and renewals before expiry to align with changing instance families or architecture shifts.
- Track and tag resources for accurate visibility into which workloads benefit from reserved capacity.
Links and further reading
- Amazon EC2 Pricing
- AWS Savings Plans
- Reserved Instances for Amazon EC2
- Spot Instances
- AWS Cost Explorer
- AWS Compute Optimizer