01Chapter 1: Why scale horizontally and spread across Availability ZonesThis chapter explains the two ideas the rest of the tutorial builds on. The first is scaling out with more instances instead of making one instance bigger. The second is placing those instances in more than one Availability Zone (AZ). Later chapters add the load balancer and Auto Scaling group that 5 min read
02Chapter 2: Subnets and Availability Zones as the foundationThis chapter assumes you know what an EC2 instance, a security group and a route table are, and that you can run AWS CLI commands. It covers the network layer that every later chapter relies on. Load balancers and Auto Scaling groups both ask you for subnets, and the subnets you choose decide how we4 min read
03Chapter 3: Elastic Load Balancing and choosing a load balancer typeThis chapter assumes you know basic EC2 and VPC concepts (instances, security groups, subnets, Availability Zones) and can run AWS CLI commands. It covers what Elastic Load Balancing (ELB) does and how to pick among its load balancer types. Listeners, rules, target groups and health checks get their4 min read
04Chapter 4: Application Load Balancer for HTTP and HTTPS trafficThis chapter assumes you can launch EC2 instances, know what a security group is, and understand subnets and Availability Zones (AZs). You should also be able to run AWS CLI commands. Here you will learn what an Application Load Balancer (ALB) does, how its parts fit together, and how to create one.4 min read
05Chapter 5: Network Load Balancer for TCP, UDP and TLS trafficThis chapter assumes you know basic EC2 concepts (instances, security groups), VPC subnets and Availability Zones, and the difference between TCP and UDP at a high level. It also assumes you have read the chapter on Elastic Load Balancing types and the one on Application Load Balancers.5 min read
06Chapter 6: Listeners and routing rulesThis chapter assumes you know what an Application Load Balancer (ALB) and a Network Load Balancer (NLB) are, and that you can run AWS CLI commands. It also assumes you know basic HTTP: hosts, paths, headers and status codes. Target groups are covered in the next chapter. Here they are only the place4 min read
07Chapter 7: Target groups and registering targetsThis chapter assumes you know what an EC2 instance, a security group and a VPC subnet are, and that you have read the previous chapter on listeners and routing rules. You should be able to run AWS CLI commands.5 min read
08Chapter 8: Health checks and what makes a target healthyThis chapter assumes you know how to create a target group and register targets, and that you have a basic grasp of HTTP status codes and security groups. It covers how a load balancer decides whether a target can receive traffic, how to tune that decision, and the errors that cause healthy servers 5 min read
09Chapter 9: Terminating TLS with ACM certificatesThis chapter assumes you can already create an Application Load Balancer (ALB) with a listener and a target group, as covered in the earlier chapters. You should also know what a certificate and a DNS record are, and have a domain whose DNS you can edit. Route 53 is convenient but not required.4 min read
10Chapter 10: Cross-zone load balancing and deregistration delayThis chapter assumes you know what a load balancer node, a target group and an Availability Zone (AZ) are, and that you can read basic AWS CLI output. It covers two settings that decide how evenly traffic is spread and how gracefully targets leave service: cross-zone load balancing and deregistratio4 min read
11Chapter 11: Launch templates as the blueprint for instancesA launch template is a saved set of EC2 launch parameters. An Auto Scaling group reads the template each time it needs a new instance, so every instance it creates starts from the same definition. This chapter covers what a template holds, how versions work, and the mistakes that most often cause la5 min read
12Chapter 12: Auto Scaling groups and capacity limitsThis chapter assumes you can launch EC2 instances from a launch template and that you know what a VPC subnet is. It covers how an Auto Scaling group (ASG) decides how many instances to run, what bounds that number, and which errors you will meet first. Target groups and scaling policies get their ow5 min read
13Chapter 13: Connecting an Auto Scaling group to a target groupThis chapter assumes you can already create an Application Load Balancer, a target group with a health check, and a launch template. It covers how an Auto Scaling group (ASG) registers the instances it launches with a target group, and how the load balancer's health checks feed back into instance re4 min read
14Chapter 14: CloudWatch metrics and alarms that drive scalingThis chapter assumes you can run AWS CLI commands and know what an EC2 instance, an Application Load Balancer (ALB) and an Auto Scaling group (ASG) are. You should also know that an ASG has minimum, maximum and desired capacity. Scaling policies are covered in the next chapter. Here you learn what f5 min read
15Chapter 15: Scaling policies: target tracking, step, scheduled and predictiveThis chapter assumes you can create an Auto Scaling group (ASG) attached to a target group, and that you know what a CloudWatch metric and alarm are. A scaling policy tells the ASG when and how far to change its desired capacity. The ASG always stays inside its minimum and maximum size, whichever po4 min read
16Chapter 16: Instance warmup and cooldownThis chapter assumes you can read an Auto Scaling group definition, know what a CloudWatch alarm is, and have seen a target tracking policy like the one earlier in this tutorial. It covers the two timers that stop scaling from overreacting: instance warmup and cooldown.4 min read
17Chapter 17: Lifecycle hooks and instance refresh for safe changesThis chapter assumes you can create an Auto Scaling group with a launch template and attach it to a target group. It also assumes you know how health checks and the deregistration delay work. Here you will learn how to pause an instance during launch or termination, and how to replace every instance4 min read
18Chapter 18: Scaling other services with Application Auto ScalingThis chapter assumes you know how an EC2 Auto Scaling group uses a target tracking policy and CloudWatch alarms to change capacity. It also assumes you can run AWS CLI commands. The goal is to apply the same ideas to services that have no launch template or instances of their own.3 min read
19Chapter 19: Gateway Load Balancer for network appliancesThis chapter assumes you know EC2 instances, security groups, VPC subnets, route tables and Availability Zones. It also assumes you have read the earlier chapters on target groups, health checks and cross-zone load balancing. A Gateway Load Balancer (GWLB) is the third Elastic Load Balancing type. I5 min read
20Chapter 20: Designing for resilience and controlling costThis chapter assumes you can already create a launch template, an Auto Scaling group (ASG), an Application Load Balancer (ALB) and a target tracking policy, as in the earlier chapters. It covers how to combine them so the web tier survives failures and does not cost more than it must.4 min read
21Chapter 21: Troubleshooting unhealthy targets and scaling problemsThis chapter assumes you have built the web tier from the earlier chapters: an Application Load Balancer, a target group with a health check, a launch template, and an Auto Scaling group with a target tracking policy. You should be comfortable with security groups, the AWS CLI, and reading CloudWatc4 min read