Update a listener for your Network Load Balancer - Elastic Load Balancing
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Update a listener for your Network Load Balancer

You can update the listener port, listener protocol, or the default listener rule. The default listener rule forwards requests to the specified 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.

If you change the target group for the default action, it has no effect on any active connections to the targets in the original target group. Connections are not drained or terminated as they would be when deregistering targets.

To update your listener using the console

  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

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

  3. Select the load balancer and choose Listeners.

  4. Select the check box for the listener and then choose Edit.

  5. (Optional) Change the specified values for Protocol : port.

  6. (Optional) Click the pencil icon to select a different target group for Default action.

  7. Choose Update.

To update your listener using the Amazon CLI

Use the modify-listener command.