Creating a Network Load Balancer | Scribe

    Creating a Network Load Balancer

    • Hafeez Baig |
    • 22 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>
    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
    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
    On the top right corner click on the **Create load balancer** dropdown button and select the option **Create Network Load Balancer**
    information ordinal icon
    **What is a Network Load Balancer in EC2?** A Network Load Balancer (NLB) is a type of load balancer provided by Amazon Web Services (AWS) that operates at the network layer (Layer 4) of the OSI model. It efficiently distributes incoming network traffic across multiple targets, such as EC2 instances, containers, and IP addresses, within one or more availability zones.
    5
    **Create Network Load Balancer** wizard will open, give Load balancer name as "**my-network-load-balancer"** and select the **Internet-facing** radio button for **Schema**
    6
    Scroll to the **IP address type** section and select the **IPv4** radio button
    7
    Scroll to the **Network mapping** section and select the default VPC from the dropdown
    8
    Scroll to the **Mappings** section and tick all the checkboxes of availability zones
    information ordinal icon
    These subnet mappings determine the availability zones in which the NLB will route traffic to its registered targets. By mapping subnets from different availability zones within the VPC, you ensure high availability and fault tolerance for your application or service by distributing traffic across multiple geographic locations.
    9
    Scroll to the **Security groups** section and select the **default** security group from the dropdown
    information ordinal icon
    **What are Security groups in AWS?** Security groups in AWS are virtual firewalls that control inbound and outbound traffic for instances (virtual servers) within a Virtual Private Cloud (VPC). They act as a fundamental security layer, allowing you to define rules that specify which traffic is allowed or denied to reach instances associated with the security group.
    10
    Scroll to the **Listeners and routing** section and click on the **Create target group** link
    11
    **Specify group details** wizard will open, select the option **Instances**
    12
    Scroll to the **Target group name** section and type "**network-load-balancer-tg**" in the text input field
    13
    Scroll to the **IP address type** section and select the **IPv4** radio button
    14
    Scroll to the **Health check path** section and give **"/"** in the text input field