01Chapter 1: What EC2 is and what you are responsible forThis chapter assumes you can use a Linux command line and read IP addresses, CIDR blocks, and port numbers. It also assumes you have an AWS account, know what an IAM user and a permission are, and have used SSH. You don't need to run anything yet. Later chapters launch real instances.2 min read
02Chapter 2: Regions and Availability Zones: where instances runThis chapter assumes you have an AWS account, can use the AWS CLI, and know what an IP address and a CIDR block are. It explains the two location choices you make before an instance exists: the Region and the Availability Zone.2 min read
03Chapter 3: Choosing an AMIThis chapter assumes you know basic Linux commands, can read CIDR blocks, and understand that an EC2 instance is a virtual server in a Region. You do not need to have launched an instance yet.2 min read
04Chapter 4: Instance types and familiesThis chapter assumes you know what an AMI is, understand Regions and Availability Zones, and can read basic CLI output. It explains how to read an instance type name and how to pick a type for a workload.2 min read
05Chapter 5: VPCs, subnets, and IP addresses for instancesThis chapter assumes you know what CIDR blocks and ports are, and that you have read the chapter on Regions and Availability Zones. It covers the network an instance lives in and the addresses it receives.2 min read
06Chapter 6: Controlling traffic with security groupsThis chapter assumes you know CIDR notation, ports, and basic SSH, and that you have a VPC with at least one subnet. A security group is a virtual firewall attached to an instance's network interface. It decides which traffic may reach the instance and which traffic may leave it.2 min read
07Chapter 7: Key pairs and connecting over SSHThis chapter assumes you know basic SSH usage, how security groups allow inbound ports, and that your instance has a public IPv4 address in a public subnet.2 min read
08Chapter 8: Launching an instance with the AWS CLIThis chapter assumes you have the AWS CLI installed and configured with credentials, a default Region, and an existing VPC with a subnet. It also assumes you have a key pair named my-key. The IDs below are examples. Replace them with your own.2 min read
09Chapter 9: Instance states: stop, start, reboot, hibernate, terminateThis chapter assumes you can launch an instance with the AWS CLI and know the difference between EBS and instance store. It covers what each state change does to your data, your bill, and your public IP address.2 min read
10Chapter 10: Bootstrapping with user dataThis chapter assumes you can launch an instance with the AWS CLI, that you have a security group allowing HTTP, and that you can read a basic shell script. User data lets an instance configure itself the first time it boots, so you don't have to log in over SSH to install software.3 min read
11Chapter 11: Persistent storage with EBS volumesThis chapter assumes you can launch an instance with the AWS CLI and know what an Availability Zone is. It covers Amazon Elastic Block Store (EBS), the storage that keeps your data when an instance stops.2 min read
12Chapter 12: Instance store: fast but temporaryThis chapter assumes you can launch an instance with the AWS CLI and that you know what an EBS volume is. It covers the second kind of block storage an instance can use.2 min read
13Chapter 13: Backing up with EBS snapshotsThis chapter assumes you know what an EBS volume is, can use the AWS CLI, and understand that a volume lives in one Availability Zone (AZ). It covers how snapshots work, how to create and restore them, and the errors people commonly hit.2 min read
14Chapter 14: Giving instances permissions with IAM rolesThis chapter assumes you can launch an instance with the AWS CLI and that you know what an IAM policy is. It covers how an instance gets AWS permissions without stored access keys, and how code on the instance reads its metadata safely.2 min read
15Chapter 15: Stable public addresses with Elastic IPsThis chapter assumes you can launch an instance, you know the instance states from the lifecycle chapter, and you understand public and private IPv4 addresses in a VPC.3 min read
16Chapter 16: Monitoring instances and status checksThis chapter assumes you can launch an instance with the AWS CLI and understand the instance lifecycle. It covers how to tell whether an instance is healthy, then how to pay less for it.1 min read
17Chapter 17: Scaling out: Auto Scaling groups and load balancersThis chapter assumes you can launch an instance, you understand security groups and subnets, and you know the basics of CloudWatch metrics. It introduces the idea of scaling out. It does not cover tuning.3 min read
18Chapter 18: Cleaning up to avoid chargesThis chapter assumes you have launched an instance with the AWS CLI, attached an EBS volume, and know what a security group and an Elastic IP are. Cleanup is the last step of any lab. If you skip it, resources you forgot keep billing you.2 min read