Amazon EC2 (Elastic Compute Cloud)

Amazon EC2 provides resizable virtual machines (instances) in the AWS cloud. It remains the foundational AWS compute primitive — even managed services like RDS, EMR, and SageMaker run on EC2 underneath. EC2 is the right choice when you need full OS-level control, specialized hardware (GPU, high-memory, HPC), or software that doesn't fit containers or Lambda.


Key Concepts:


Pricing Models:


When to Use EC2 (vs. Alternatives):


Best Practices: