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
Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/
. -
In the navigation pane, choose Load Balancers.
-
Choose the name of the load balancer to open its detail page.
-
On the Listeners tab, choose the text in the Protocol:Port column to open the detail page for the listener.
-
Choose Edit.
-
(Optional) Change the specified values for Protocol and Port as needed.
-
(Optional) Choose a different target group for Default action.
-
(Optional) Add, update, or remove tags as needed.
-
Choose Save changes.
To update your listener using the Amazon CLI
Use the modify-listener command.