Elastic Load Balancing Application Load Balancers Elastic Load Balancing Application Load Balancers
Total Page:16
File Type:pdf, Size:1020Kb
Elastic Load Balancing Application Load Balancers Elastic Load Balancing Application Load Balancers Elastic Load Balancing: Application Load Balancers Elastic Load Balancing Application Load Balancers Table of Contents What is an Application Load Balancer? .................................................................................................. 1 Application Load Balancer components ......................................................................................... 1 Application Load Balancer overview ............................................................................................. 2 Benefits of migrating from a Classic Load Balancer ........................................................................ 2 Related services ......................................................................................................................... 3 Pricing ...................................................................................................................................... 3 Getting started .................................................................................................................................. 4 Before you begin ....................................................................................................................... 4 Step 1: Configure your target group ............................................................................................. 4 Step 2: Choose a load balancer type ............................................................................................ 5 Step 3: Configure your load balancer and listener .......................................................................... 5 Step 4: Test your load balancer ................................................................................................... 6 Step 5: (Optional) Delete your load balancer ................................................................................. 6 Tutorial: Create an Application Load Balancer using the Amazon CLI ......................................................... 7 Before you begin ....................................................................................................................... 7 Create your load balancer ........................................................................................................... 7 Add an HTTPS listener ................................................................................................................ 8 Add path-based routing .............................................................................................................. 8 Delete your load balancer ........................................................................................................... 9 Load balancers ................................................................................................................................. 10 Subnets for your load balancer .................................................................................................. 10 Load balancer security groups .................................................................................................... 12 Load balancer state .................................................................................................................. 12 Load balancer attributes ........................................................................................................... 12 IP address type ........................................................................................................................ 13 Connection idle timeout ............................................................................................................ 14 Deletion protection ................................................................................................................... 14 Desync mitigation mode ........................................................................................................... 15 Amazon WAF ........................................................................................................................... 16 Create a load balancer .............................................................................................................. 17 Step 1: Configure a target group ......................................................................................... 4 Step 2: Register targets ..................................................................................................... 18 Step 3: Configure a load balancer and a listener ................................................................... 18 Step 4: Test the load balancer ............................................................................................. 6 Update Availability Zones .......................................................................................................... 20 Update security groups ............................................................................................................. 21 Recommended rules ......................................................................................................... 21 Update the associated security groups ................................................................................ 22 Update the address type ........................................................................................................... 22 Update tags ............................................................................................................................. 23 Delete a load balancer .............................................................................................................. 24 Listeners .......................................................................................................................................... 25 Listener configuration ............................................................................................................... 25 Listener rules ........................................................................................................................... 26 Default rules .................................................................................................................... 26 Rule priority .................................................................................................................... 26 Rule actions ..................................................................................................................... 26 Rule conditions ................................................................................................................ 26 Rule action types ..................................................................................................................... 26 Fixed-response actions ...................................................................................................... 27 Forward actions ............................................................................................................... 27 Redirect actions ............................................................................................................... 29 Rule condition types ................................................................................................................. 31 HTTP header conditions .................................................................................................... 31 iii Elastic Load Balancing Application Load Balancers HTTP request method conditions ....................................................................................... 32 Host conditions ................................................................................................................ 32 Path conditions ................................................................................................................ 33 Query string conditions ..................................................................................................... 34 Source IP address conditions .............................................................................................. 34 Create an HTTP listener ............................................................................................................ 35 Prerequisites .................................................................................................................... 35 Add an HTTP listener ........................................................................................................ 35 Create an HTTPS listener .......................................................................................................... 36 SSL certificates ................................................................................................................ 36 Security policies ............................................................................................................... 38 Add an HTTPS listener ...................................................................................................... 42 Update an HTTPS listener ................................................................................................. 43 Update listener rules ................................................................................................................ 43 Requirements ................................................................................................................... 44 Add a rule ......................................................................................................................