Update the health check settings of a Network Load Balancer target group
You can update the health check settings for your target group at any time. For the list of health check settings, see Health check settings.
- Console
-
To update the health check settings
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the navigation pane, under Load Balancing, choose Target Groups.
-
Choose the name of the target group to open its details page.
-
On the Health checks tab, choose Edit.
-
On the Edit health check settings page, modify the settings as needed.
-
Choose Save changes.
- AWS CLI
-
To update the health check settings
Use the modify-target-group command. The following example updates the HealthyThresholdCount and HealthCheckTimeoutSeconds settings.
aws elbv2 modify-target-group \ --target-group-arn
target-group-arn
\ --healthy-threshold-count3
\ --health-check-timeout-seconds20
- CloudFormation
-
To update the health check settings
Update the AWS::ElasticLoadBalancingV2::TargetGroup resource to include the updated health check settings. The following example updates the HealthyThresholdCount and HealthCheckTimeoutSeconds settings.
Resources: myTargetGroup: Type: 'AWS::ElasticLoadBalancingV2::TargetGroup' Properties: Name: my-target-group Protocol: TCP Port: 80 TargetType: instance VpcId: !Ref myVPC HealthyThresholdCount:
3
HealthCheckTimeoutSeconds:20