EC2 (Elastic Compute Cloud) fornisce server virtuali (istanze) ridimensionabili nel cloud — puoi avviare, configurare ed eseguire macchine virtuali su richiesta. È uno dei servizi fondamentali e core di AWS per eseguire applicazioni.
Cos'è EC2
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
Concetti chiave
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
