Skip to content

EC2

Elastic Compute Cloud

Medium — good to knowCloud & Infra

ELI5 — The Vibe Check

EC2 is AWS's way of renting you a virtual computer in the cloud. You pick how powerful it is, what OS it runs, and pay by the hour. It's just a Linux (or Windows) machine you SSH into — except it lives in Amazon's data center. The backbone of most AWS-hosted apps.

Real Talk

Amazon EC2 provides resizable virtual machines in the cloud. You choose instance type (CPU, RAM, GPU), AMI (OS image), storage, and networking. Instances are billed per second. EC2 supports auto scaling, spot instances (discounted), and reserved instances for cost optimization.

Show Me The Code

# Launch an EC2 instance via CLI
aws ec2 run-instances \
  --image-id ami-0c55b159cbfafe1f0 \
  --instance-type t3.micro \
  --key-name my-key-pair \
  --security-groups my-sg

# SSH into the instance
ssh -i my-key.pem ec2-user@ec2-12-34-56-78.compute.amazonaws.com

When You'll Hear This

"The app runs on a t3.medium EC2 instance." / "EC2 spot instances are 70% cheaper if you can handle interruptions."

Made with passive-aggressive love by manoga.digital. Powered by Claude.