1The Elasticity Promise
The 'Elastic' in EC2 refers to the ability to quickly scale capacity up or down as your computing requirements change. Instead of waiting weeks or months to provision physical servers, you can launch thousands of EC2 instances in minutes.
2The Financial Shift
EC2 represents a shift from Capital Expenditure (CapEx - buying servers) to Operational Expenditure (OpEx - paying per second/hour). You only pay for what you use, when the instance is running.
3Step-by-Step Breakdown
What is EC2?. Amazon Elastic Compute Cloud (EC2) provides scalable computing capacity. It eliminates the need to invest in hardware up front.
Virtual Machines. When you launch an EC2 instance, you are renting a Virtual Machine (VM) hosted in an AWS data center.
Instance Types. AWS offers various instance families optimized for different workloads: Compute (C), Memory (R), Storage (I), or General Purpose (M, T).
Choosing an AMI. An Amazon Machine Image (AMI) provides the software configuration (OS, application server, and apps) required to launch your instance.
User Data. You can provide an automated bash script, called 'User Data', which runs exactly once when the instance boots up.
Configuration Check. Which component dictates the Operating System of an EC2 instance upon launch?
- →VPC
- →AMI (Amazon Machine Image)
- →EBS
Key Pairs. To securely connect to your instance via SSH (Linux) or RDP (Windows), you must assign it a Key Pair during launch.
Security Groups. A Security Group acts as a virtual firewall, controlling inbound and outbound traffic to your instance.
State Management. You can Stop, Reboot, or Terminate instances. Terminating permanently deletes the instance and its default root volume.
Completion. Your virtual server is up and running in the cloud.
