How to Create a Load Balancer with an HTTPS Listener


Posted by Wes on 2020-11-12

Elastic Load Balancing automatically distributes your incoming traffic across multiple targets, such as EC2 instances, containers, and IP addresses, in one or more Availability Zones.

Elastic Load Balancing supports four types of load balancers:

  1. Application Load Balancers
  2. Network Load Balancers
  3. Gateway Load Balancers
  4. Classic Load Balancers

You can select the type of load balancer that best suits your needs.

Create Load Balancer

EC2 Management Console → Load Balancing → Load Balancers → Create Load Balancer

Create Load Balancer

Select Load Balancer Type

Application Load Balancer: HTTP/HTTPS

Select Load Balancer Type

Step 1: Configure Load Balancer

Listeners

Load Balancer Protocol: HTTP

Step 1: Configure Load Balancer - Listeners

Availability Zones

You must specify subnets from at least two Availability Zones to increase the availability of your load balancer.

Step 1: Configure Load Balancer - Availability Zones

Step 2: Configure Security Settings

Step 2: Configure Security Settings

Step 3: Configure Security Groups

Step 3: Configure Security Groups

Step 4: Configure Routing

Step 4: Configure Routing

Step 5: Register Targets

Select an instance → Add to registered

Step 5: Register Targets

Step 6: Review

Step 6: Review

Load Balancer Creation Status

Load Balancer Creation Status

Add listener

EC2 Management Console → Load Balancing → Load Balancers → Listeners → Add listener

Add listener

Set up action(s) of listeners

  1. Protocol : port - HTTPS : 443
  2. Add action → Forward to... → Target group
  3. Security policy: ELBSecurityPolicy-2016-08
  4. Default SSL certificate: From ACM

Set up action(s) of listeners

Create Target Group

EC2 Management Console → Load Balancing → Target Groups → Create target group

Create target group

Specify group details

  1. Choose a target type: Instances
  2. Protocol : port - HTTPS : 443

Specify group details

Register targets

Select instances, specify ports, and add the instances to the list of pending targets.

Register targets

Result

Load Balancer with an HTTPS Listener

References

  1. Elastic Load Balancing Documentation
  2. What is an Application Load Balancer? - Elastic Load Balancing
  3. Getting started with Application Load Balancers - Elastic Load Balancing
  4. Create a Classic Load Balancer with an HTTPS listener - Elastic Load Balancing
  5. AWS Load Balancers: Classic Load Balancer vs Application Load Balancer
  6. AWS 設定Load Balancer 教學(含SSL憑證) – 梁爸的書坊

#Load Balancer #HTTPS #aws #ec2







Related Posts

響應式RWD實作練習

響應式RWD實作練習

Leetcode 刷題 pattern - 美國軟體工程師求職有趣經驗

Leetcode 刷題 pattern - 美國軟體工程師求職有趣經驗

函式原型方法:bind()、call()、apply()

函式原型方法:bind()、call()、apply()


Comments