EC2 (Elastic Compute Cloud) cung cấp máy chủ ảo (instances) có thể thay đổi kích thước trong đám mây — bạn khởi chạy, cấu hình và chạy máy ảo theo nhu cầu. Đây là một trong những dịch vụ cốt lõi, nền tảng của AWS để chạy ứng dụng.
EC2 là gì
EC2 = virtual servers ("instances") you rent and run in AWS's cloud:
→ launch a VM in minutes (choose OS, CPU, memory, storage)
→ full control (it's your server — install software, configure as you like)
→ pay for the time it runs (per-second/hour)
→ "Elastic" — launch many, scale up/down, resize as needed
Các khái niệm chính
INSTANCE TYPE → the hardware profile: CPU/memory/network (e.g. t3.micro small,
m5.large general, c5 compute-optimized, r5 memory-optimized) — pick by workload
AMI (Amazon Machine Image) → the template (OS + pre-installed software) to launch from
KEY PAIR → SSH keys to securely access (log into) the instance
SECURITY GROUP → a virtual firewall (which ports/traffic are allowed)
EBS VOLUME → attached disk storage (persists data)
ELASTIC IP → a static public IP address
