EC2 Instance Types and Pricing
Instance Types Categories:
- General Purpose: Balanced (T2, T3, M5).
- Compute Optimized: High performance (C5, C6g).
- Memory Optimized: Fast processing of large datasets (R5, X1).
- Storage Optimized: High local storage IOPS (I3, D2).
Pricing Models:
- On-Demand: Pay by the second. No commitment. Best for short-term.
- Reserved Instances (RI): Commit to 1-3 years for up to 75% discount.
- Spot Instances: Use spare AWS capacity. Up to 90% discount, but can be reclaimed by AWS with 2-min warning. Best for stateless apps.
- Savings Plans: Commit to usage (e.g., $10/hr) for discounts.