AWS for DevOps — Compute (EC2 & Auto Scaling)
Chapter 3 — Compute (EC2 & Auto Scaling)
EC2 (Elastic Compute Cloud) is the backbone of AWS compute. It lets you run virtual servers (instances) in the cloud. For DevOps engineers, EC2 is where your applications, build agents, bastion hosts, and test environments live.
This chapter covers:
| Section | Topic |
|---|---|
| 3.1 | EC2 Basics |
| 3.2 | AMIs & Key Pairs |
| 3.3 | Security Groups |
| 3.4 | User Data Scripts |
| 3.5 | Auto Scaling |
| 3.6 | Practice Exercises |
The Big Picture
┌─────────────────────────────────────────────────────┐
│ VPC │
│ │
│ ┌──────── Public Subnet ────────┐ │
│ │ ALB ──► Target Group │ │
│ └──────────────┬────────────────┘ │
│ │ │
│ ┌──────── Private Subnet ───────┐ │
│ │ Auto Scaling Group │ │
│ │ ┌──────┐ ┌──────┐ ┌──────┐ │ │
│ │ │ EC2 │ │ EC2 │ │ EC2 │ │ │
│ │ │ i-01 │ │ i-02 │ │ i-03 │ │ │
│ │ └──────┘ └──────┘ └──────┘ │ │
│ │ Launch Template: t3.medium │ │
│ │ AMI: custom-app-v1.2 │ │
│ └──────────────────────────────┘ │
└─────────────────────────────────────────────────────┘
By the end of this chapter, you will be able to launch instances, create custom AMIs, configure security groups, automate instance setup with user data, and scale horizontally with Auto Scaling Groups.
Start with → EC2 Basics