Menu
Elastic Load Balancing
Application Load Balancers

Create a Listener for Your Application Load Balancer

A listener is a process that checks for connection requests. You define a listener when you create your load balancer, and you can add listeners to your load balancer at any time.

Prerequisites

  • You must specify a target group for the default listener rule. For more information, see Create a Target Group.

  • If you create an HTTPS listener, you must specify a certificate and a security policy. The load balancer uses the certificate to terminate the connection and decrypt requests from clients before routing them to targets. For more information, see SSL Certificates. The load balancer uses the security policy when negotiating SSL connections with the clients. For more information, see Security Policies.

Add a Listener

You configure a listener with a protocol and a port for connections from clients to the load balancer, and a target group for the default listener rule. For more information, see Listener Configuration.

To add a listener using the console

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. On the navigation pane, under LOAD BALANCING, choose Load Balancers.

  3. Select a load balancer, and choose Listeners, Add listener.

  4. For Protocol, choose HTTP or HTTPS (Secure HTTP).

  5. For Port, keep the default port or type a different port.

  6. For Default target group, select an available target group.

  7. [HTTPS Listener] For Select default certificate, do one of the following:

    • If you created or imported a certificate using AWS Certificate Manager, select Choose a certificate from ACM, and then select the certificate from Certificate name.

    • If you uploaded a certificate using IAM, select Choose a certificate from IAM, and then select the certificate from Certificate name.

  8. [HTTPS Listener] For Security policy, we recommend that you keep the default security policy.

  9. Choose Create.

  10. (Optional) To define additional listener rules that forward requests based on a path pattern or a hostname, see Add a Rule.

To add a listener using the AWS CLI

Use the create-listener command to create the listener and default rule, and the create-rule command to define additional listener rules.