Amazon EC2 in forty slides: physical servers, instances and EBS volumes in an Availability Zone, and an instance on its host; the instance's components, one slide each, volumes among them; AMIs, as their consumer, and the block device mapping; instance types, their families and sizes, and burstable instances; key pairs, SSH and the other ways in; security groups, stateful filtering and groups as sources; private, public and Elastic IP addresses; the root volume and delete on termination; the instance states and what survives a reboot, a stop and a termination; the purchasing options and Spot. Every section ends with five exam questions.
The slides
The tool is forty slides: an introduction, the instance's components, then eight sections of details, listed on its left. Every section ends with five
exam questions, each with its answer and the tempting wrong answer.
- 0. Introduction
- Elastic Compute Cloud (EC2): physical servers running instances, storage servers holding EBS volumes, and the network between them.
- An instance on its host: the Nitro System, and the instance store.
- 1. Instance components: one slide each, with our web server's values; the details are in the numbered sections.
- What's in an instance?: the parts, numbered by their sections.
- The AMI, the instance type, volumes: the instance's disks, the network interface and its addresses, the security group and the key pair.
- 2. AMIs
- An Amazon Machine Image (AMI): the root snapshot, the architecture, and a copy for each instance.
- The block device mapping: the volumes EC2 creates at launch, and a launch it refuses.
- Where AMIs come from: AWS, verified providers, AWS Marketplace, community AMIs and our own.
- An AMI's ID in each Region: the public SSM parameters.
- 3. Instance types
- An instance type's name: family, generation, attributes and size.
- The instance families: general purpose, compute, memory, storage and accelerated.
- Sizes inside a family: each size doubles the one before.
- Burstable instances: T and CPU credits: the baseline, the credits, standard and unlimited.
- 4. Key pairs
- A key pair: the public key on the instance, the private key with us.
- Connecting with SSH:
chmod 400, the AMI's user name, the host key. - Three ways to reach an instance: SSH, EC2 Instance Connect and Session Manager.
- 5. Security groups
- A security group: allow rules on a network interface.
- Stateful filtering: replies pass: the connection table.
- A security group as a rule's source: the tiers of an application.
- 6. IP addresses
- The private IPv4 address, the public IPv4 address and an Elastic IP address.
- 7. The root volume
- The root volume: an EBS volume from the AMI's snapshot.
- Volumes at termination: the delete-on-termination flag.
- 8. The lifecycle
- The instance states: what EC2 does in each, and which are billed.
- What survives a reboot, a stop and a termination.
- 9. Purchasing options
- The purchasing options: On-Demand, Savings Plans, Reserved Instances, Spot, Dedicated Hosts, Capacity Reservations.
- Spot Instances: the price, the two-minute notice.
The buttons on the left and right edges move between slides. So do the arrow keys and a swipe.
The lab
Amazon EC2 Lab: the Web Server practices it.
The Amazon Linux 2023 AMI, its IDs in two Regions, the m7g sizes and the default VPC's subnets were read from an
account with the CLI on 2026-11-16. The prices are On-Demand, Linux, in us-east-1. The instance ID and the addresses are
placeholders: AWS's i-1234567890abcdef0, and the documentation ranges 192.0.2.0/24, 198.51.100.0/24 and
203.0.113.0/24.
Sources