| Family | ဘာအတွက် | Example |
|---|---|---|
| t3 / t2 | General purpose (web servers, dev) | t2.micro (free tier) |
| m5 / m6 | Balanced memory/CPU | m5.large |
| c5 / c6 | Compute optimized (CPU heavy) | c5.xlarge |
| r5 / r6 | Memory optimized (databases) | r5.large |
| p3 / g4 | GPU (ML, video) | g4dn.xlarge |
# Windows PowerShell / Mac Terminal မှာ # key file permission fix (Mac/Linux) chmod 400 my-key.pem # SSH connect ssh -i "my-key.pem" ubuntu@<your-public-ip> # Example ssh -i "my-key.pem" ubuntu@54.169.123.45 # Server ဝင်ပြီးရင် — update လုပ် sudo apt update && sudo apt upgrade -y # NGINX install sudo apt install nginx -y sudo systemctl start nginx sudo systemctl enable nginx
Security Group = Cloud Firewall (Inbound/Outbound rules) Inbound Rules (ဝင်ခွင့်) ┌─────────────┬──────────┬───────────┬────────────────┐ │ Type │ Protocol │ Port │ Source │ ├─────────────┼──────────┼───────────┼────────────────┤ │ SSH │ TCP │ 22 │ My IP │ │ HTTP │ TCP │ 80 │ 0.0.0.0/0 │ │ HTTPS │ TCP │ 443 │ 0.0.0.0/0 │ │ MySQL/Aurora│ TCP │ 3306 │ Security Group │ └─────────────┴──────────┴───────────┴────────────────┘ Outbound Rules — default: All traffic allowed
# Apache + PHP + MySQL install sudo apt update sudo apt install apache2 php php-mysql mysql-server -y # Apache start sudo systemctl start apache2 # PHP test file echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/info.php # MySQL secure sudo mysql_secure_installation # Browser မှာ: http://<your-ip>/info.php
← AWS 01 | Next: AWS 03 → S3 →