Amazon EC2 EC2 = Elastic Compute Cloud AWS Infrastructure as a Service (IaaS) offering Lets you rent virtual servers (instances) on-demand EC2 Components Instances → Virtual machines (VMs) EBS Volumes → Virtual drives for storage Elastic Load Balancer (ELB) → Distributes traffic across instances Auto Scaling Group (ASG) → Scales instances automatically Instance Configuration Options OS Choices: Linux (most popular), Windows, MacOS Compute: Number of vCPUs (cores) Memory (RAM): Customizable Storage: EBS/EFS (network-attached) Instance Store (hardware-attached) Networking: Network card speed Public IP options Security Groups: Firewall rules for instance Bootstrap (User Data): Script executed at first launch Installs software, updates, downloads files, etc. Runs as root (sudo rights) Instance Types Examples Instance vCPU Mem (GiB) Storage Network Performance EBS Bandwidth (Mbps) t2.micro 1 1 EBS-Only Low to Moderate - t2.xlarge 4 16 EBS-Only Moderate 4,750 c5d.4xlarge 16 32 1 x 400 NVMe SSD Up to 10 Gbps 4,750 r5.16xlarge 64 512 EBS Only 20 Gbps 13,600 m5.8xlarge 32 128 EBS Only 10 Gbps 6,800 Free Tier t2.micro: Up to 750 hours per month free (~1 instance running continuously for a month) EC2 Instance Types Different workloads need different optimizations: compute, memory, storage, or networking. AWS provides several categories of instances to match use cases. Detail of Each Instance ->: https://instances.vantage.sh Each Category Details ->: https://aws.amazon.com/ec2/instance-types ...