Understand AWS Elastic Load Balancing Listeners | Scribe

    Understand AWS Elastic Load Balancing Listeners

    • Hafeez Baig |
    • 19 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 Classic Load Balancer<https://scribehow.com/shared/AWS_Elastic_Load_Balancing__Getting_started_with_Classic_Load_Balance__edZk6AUORPir-vDtdkVHtg> Refer to this guide to learn how to create an Application Load Balancer<https://scribehow.com/shared/AWS_Elastic_Load_Balancing__Getting_started_with_ALB__EwQ9heoPR7SOessSgfviWA>

    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

    3

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

    4

    Select and checkbox the "**my-application-load-balancer**" Load balancer to view its details

    5

    Scroll to the overview section to view all the details of the selected Load balancer

    6

    Click on the **Listeners and rules** tab to view the Listeners and rules set for the load balancer

    7

    In the **Listeners and rules** section, click the **Add listener** button on the right side to add a new listener

    8

    Scroll to the **Listener configuration** section, select the Protocol as **HTTP** and Port as **8080**

    9

    Scroll to the **Routing actions** section - Select "**Return fixed response**" as Routing actions - Give the Response code as **200** - Choose "**text/plain**" as the Content type

    10

    Give the **Response body** as [[&lt;html&gt;&lt;body&gt;Hello&lt;/body&gt;&lt;/html&gt;]]

    11

    Click on **Add** button

    12

    Listener successfully created. Now, click on "**Load balancers**"

    13

    Click on the **Security** tab to view the Security groups associated with the selected load balancer

    14

    Click on the **Security Group ID** link to view it

    15

    On the right side of the Security group section, click on **Edit inbound rules** button

    16

    Click on **Add rule** button to add a new rule

    17

    For the new rule give the Port range as "**8080**" and select "**Anywhere-IPv4**" as the Source

    18

    Click on **Save rules** button

    19

    Inbound security group rules successfully modified