EC2 (Elastic Compute Cloud) يوفر خوادم افتراضية (instances) قابلة لتغيير حجمها في السحابة — حيث يمكنك إطلاق وتكوين وتشغيل الآلات الافتراضية عند الطلب. وهي واحدة من خدمات AWS الأساسية والتأسيسية لتشغيل التطبيقات.
ما هو 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
المفاهيم الرئيسية
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
