Exploring Network Load Balancer | Scribe

    Exploring Network Load Balancer

    • Hafeez Baig |
    • 26 steps |
    • 2 minutes
    information ordinal icon

    Refer to the following guide to learn how to use IAM in the cloud\ <https://scribehow.com/shared/Creating_an_IAM_User_and_User_Group_in_AWS_Management_Console__hWNiiXlcRJKFqYZZEJD-cg> Refer to this guide to learn how to create a Network Load Balancer\ <https://scribehow.com/shared/Creating_a_Network_Load_Balancer__DE9F1Nm5SbSI9eDK-4vrPA>

    1

    Sign in to **AWS Management Console** as an **IAM User** **Pre-requisite** - Ensure you have selected the AWS region closest to your location\ For this guide, we will be using us-east-2 (Ohio) as a preferred choice

    2

    Type **EC2** in the search bar and click on **EC2** to view the EC2 Dashboard

    information ordinal icon

    **What is EC2 in AWS?** Amazon Elastic Compute Cloud (EC2) is a web service provided by Amazon Web Services (AWS) that allows users to rent virtual computers (instances) on which they can run their own applications.

    3

    On the EC2 dashboard click on **Load Balancers** from the left bar to view the **Load Balancers**

    information ordinal icon

    **What are Load Balancers in EC2?** In Amazon EC2 (Elastic Compute Cloud), a load balancer is a service that automatically distributes incoming application traffic across multiple instances (virtual servers) within an EC2 Auto Scaling group or across multiple Availability Zones to ensure optimal performance, fault tolerance, and scalability of the application

    4

    **Load balancers** wizard will open, select the Name **my-nework-load-balancer**

    5

    Scroll the page to the **DNS name** section and click on the copy widget to copy the **DNS name** URL

    6

    Paste the URL in a new tab, and you'll encounter an error message "**This site can't be reached**" due to the absence of inbound rules allowing HTTP traffic

    7

    Come back to the EC2 dashboard and click on the **Target Groups** from the left bar

    information ordinal icon

    **What are the Target Groups in EC2?** Target Groups in Amazon EC2 are logical groupings of instances or IP addresses that route traffic to one or more registered targets. They are used in conjunction with Elastic Load Balancers (ELB) and AWS Auto Scaling to efficiently distribute incoming traffic across multiple targets, such as EC2 instances, containers, IP addresses, or Lambda functions.

    8

    **Target groups** wizard will open, select the Name **network-load-balancer-tg**

    9

    Scroll the page and click on the **Targets** tab

    10

    Scroll to the **Registered targets** section, here you will notice **Health status** is **Unhealthy**

    11

    To change the Security groups, click on the **Instances** from the left bar

    12

    **Instances** wizard will open, from the list of Instances select the instance **Launch Template** **Note:** Select the Instance that was added as a registered target during the creation of the Network Load Balancer.

    13

    Scroll the page, click on the **Security** tab and click on the Security group **launch-wizard-1** link

    14

    **Security group launch-wizard-1** wizard will open, scroll the page and click on the **Edit inbound rules** button on the right side

    15

    **Edit inbound rules** wizard will open, click on **Add rule** button

    16

    From the **Type** dropdown select the option **HTTP**