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.

All modules📖 Glossary

Traditional IT → EC2

TraditionalEC2
ServerInstance
OS & softwareAMI
Hardware sizeInstance type
Hard diskEBS / instance store
PasswordKey pair
FirewallSecurity group
LANVPC
Server roomRegion / AZ
LabelsTags
ISP public IPElastic IP

Day 8 →

Connecting

LinuxWindows
ProtocolSSHRDP
Port223389
Userec2-user / ubuntuAdministrator
Key pairlogs you indecrypts the password
Toolssh, MobaXterm, PuTTY (.ppk)mstsc, MobaXterm

Day 9 → · Day 10 →

Instance type names

m 7 g . large = family · generation · attribute · size
LetterMeans
T / Mgeneral purpose (T = burstable)
Ccompute (CPU)
R / Xmemory (RAM)
I / Dstorage (disk I/O)
P / GGPUs
g after the numberGraviton (ARM)

Pricing

OptionDiscountUse for
On-Demandnonetesting, unpredictable
Savings Plans / RIsup to ~72%steady 1–3 years
Spotup to ~90%interruptible jobs
Dedicated Hostspremiumlicensing, 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