Update the TCP idle timeout for your Network Load Balancer listener - 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 (PDF).

Update the TCP idle timeout for your Network Load Balancer listener

For each TCP request made through a Network Load Balancer, the state of that connection is tracked. If no data is sent through the connection by either the client or target for longer than the idle timeout, the connection is closed. The default idle timeout value for TCP flows is 350 seconds, but can be updated to any value between 60-6000 seconds.

To update the TCP idle timeout 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 Network Load Balancer.

  4. On the listeners tab choose the Actions, View listener details.

  5. On the listener details page, in the Attributes tab, select Edit.

  6. On the Edit listener attributes page, in the Listener attributes section, enter a value for TCP idle timeout.

  7. Choose Save changes

To update the TCP idle timeout using the Amazon CLI

Use the modify-listener-attributes command with the tcp.idle_timeout.seconds attribute.