EC2

Amazon EC2 provides resizable compute capacity in the cloud, allowing us to run virtual machines (instances) with various operating systems and configurations.

Users can scale instances up or down automatically using Auto Scaling Groups (ASG).

Supports both vertical (changing instance type) and horizontal scaling (adding/removing instances).

Instance Types: EC2 provides different families of instances optimized for various workloads:

  • General Purpose – Balanced performance (e.g., T3, M5)

  • Compute Optimized – High CPU power (e.g., C5, C6g)

  • Memory Optimized – High RAM for large datasets (e.g., R5, X1)

  • Storage Optimized – High-speed local storage (e.g., I3, D2)

  • Accelerated Computing – GPU and FPGA instances for ML and graphics (e.g., G4, P4, F1)

Billing & Pricing Models:

  • On-Demand: Pay per second/minute without long-term commitments.

  • Reserved Instances (RI): Up to 72% cost savings for 1- or 3-year commitments.

  • Spot Instances: 90% cheaper than On-Demand but can be terminated anytime.

  • Savings Plans: Flexible pricing model based on usage patterns.

Last updated