Load Balancing

ConnectPrivate

Overview

ConnectPrivate The purpose of the Application Load Balancer here is to route network traffic to a group of stable EC2 instances.

Before we can launch the Application Load Balancer, we need to define our target group. In this scenario, Application Load Balancer will route trafic to EC2 instance in Public Subnet, so we can understand that our EC2 instances are the target group.

Plus, we also need to configure our listener, which is a process that checks for connection requests, using the protocol and port that you configure. You must have at least one listener.

Here, we will configure our target group to be the Auto Scaling Group and set up the Listener to use the HTTP protocol on port 80.

After gathering information about the three components, you are now able to use Terraform to build infrastructure.