Module 3 cheat sheet: Amazon EC2
EC2 = virtual servers: pick an AMI, instance type, storage, key pair and security group, then connect with SSH or RDP.
Traditional IT → EC2
| Traditional | EC2 |
|---|
| Server | Instance |
| OS & software | AMI |
| Hardware size | Instance type |
| Hard disk | EBS / instance store |
| Password | Key pair |
| Firewall | Security group |
| LAN | VPC |
| Server room | Region / AZ |
| Labels | Tags |
| ISP public IP | Elastic IP |
Day 8 →
Connecting
| Linux | Windows |
|---|
| Protocol | SSH | RDP |
| Port | 22 | 3389 |
| User | ec2-user / ubuntu | Administrator |
| Key pair | logs you in | decrypts the password |
| Tool | ssh, MobaXterm, PuTTY (.ppk) | mstsc, MobaXterm |
Day 9 → · Day 10 →
Instance type names
m 7 g . large = family · generation · attribute · size
| Letter | Means |
|---|
| T / M | general purpose (T = burstable) |
| C | compute (CPU) |
| R / X | memory (RAM) |
| I / D | storage (disk I/O) |
| P / G | GPUs |
| g after the number | Graviton (ARM) |
Pricing
| Option | Discount | Use for |
|---|
| On-Demand | none | testing, unpredictable |
| Savings Plans / RIs | up to ~72% | steady 1–3 years |
| Spot | up to ~90% | interruptible jobs |
| Dedicated Hosts | premium | licensing, compliance |
Code: SSH in one line
chmod 400 linux-key.pem
ssh -i linux-key.pem ec2-user@13.233.45.67
Common mistakes
- Instance store for data that must survive a stop.
- Losing the .pem file (AWS keeps no copy).
- Wrong SSH user (ec2-user vs ubuntu).
- RDP/SSH open to the whole internet.
- Leaving Windows instances or Elastic IPs running.
Created by Ajeetkumar · EasyLearnSpace