EC2 (Elastic Compute Cloud) fornece servidores virtuais (instâncias) redimensionáveis na nuvem — você lança, configura e executa máquinas virtuais sob demanda. É um dos serviços principais e fundamentais da AWS para executar aplicações.
O que é 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
Conceitos-chave
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
