Update a listener for your Network Load Balancer - Elastic Load Balancing

Update a listener for your Network Load Balancer

You can update the listener protocol, listener port or the target group which receives traffic from the forwarding action. The default action, also known as the default rule, forwards requests to the selected target group.

If you change the protocol from TCP or UDP to TLS, you must specify a security policy and server certificate. If you change the protocol from TLS to TCP or UDP, the security policy and server certificate are removed.

When the target group for the default action of the listener is updated, new connections are routed to the newly configured target group. However, this has no effect on any active connections that were created prior to this change. These active connections remain associated to the target in the original target group for up to one hour if traffic is being sent, or up to when the idle-timeout period elapses if no traffic is sent, whichever occurs first. The parameter Connection termination on deregistration is not applied when updating the listener, as it's applied when deregistering targets.

To update your listener using the console
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Load Balancers.

  3. Choose the name of the load balancer to open its detail page.

  4. On the Listeners tab, choose the text in the Protocol:Port column to open the detail page for the listener.

  5. Choose Edit.

  6. (Optional) Change the specified values for Protocol and Port as needed.

  7. (Optional) Choose a different target group for Default action.

  8. (Optional) Add, update, or remove tags as needed.

  9. Choose Save changes.

To update your listener using the AWS CLI

Use the modify-listener command.