EC2 — Complete Guide
EC2 — Complete Guide: free step-by-step lesson with examples, common mistakes, and interview tips — part of AWS Cloud Tutorial on Toolliyo Academy.
On this page
AWS Cloud Tutorial · Lesson 21 of 100
EC2
Core services → Projects
Core services · 1 — AWS basics · ~6 min · AWS — Compute Services
What is this?
Amazon EC2 provides resizable virtual servers in the cloud. You choose instance type, AMI, key pair, and security groups per workload.
Why should you care?
AwsVerse runs payment microservices on EC2 Auto Scaling groups behind ALBs for predictable CPU-bound tasks.
See it live — copy this example
Run in AWS CloudShell / local AWS CLI v2, or follow the matching steps in the AWS Console (Free Tier).
aws ec2 run-instances \
--image-id ami-0c55b159cbfafe1f0 \
--instance-type t3.micro \
--key-name awsverse-lab \
--security-group-ids sg-0app123 \
--subnet-id subnet-private1a \
--tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=awsverse-api}]'
What happened?
- Launches one t3.micro in a private subnet with a named key and SG.
- Replace AMI ID with latest Amazon Linux in your region.
Practice next
- Launch t3.micro in default VPC (Free Tier).
- Connect via SSM Session Manager (no SSH key needed).
- Stop instance when lab ends to avoid charges.
- Switch to t3.small and compare CPU credits.
- Attach a 20 GB gp3 EBS volume.
Remember
EC2 = virtual servers on demand. Pick instance family for CPU/RAM/GPU. Use SSM instead of open SSH.
AwsVerse batch workers
Nightly interest calculation needs burst CPU.
Outcome: Scheduled Scale Out on EC2 completes jobs in two hours.
Interview prep for this lesson
Practice these questions aloud after reading—each links to a full structured answer.
Sign in to ask a question or upvote helpful answers.
No questions yet — be the first to ask!