-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
@aws-cdk/aws-elasticloadbalancingv2Related to Amazon Elastic Load Balancing V2Related to Amazon Elastic Load Balancing V2documentationThis is a problem with documentation.This is a problem with documentation.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp2
Description
Describe the issue
The documentation for the unhealthyThresholdCount member of the ELBv2 HealthCheck interface says that for NLBs the unhealthy threshold count must be the same as the healthy threshold count:
unhealthyThresholdCount?
Type:
number(optional, default: 2)The number of consecutive health check failures required before considering a target unhealthy.
For Application Load Balancers, the default is 2. For Network Load Balancers, this value must be the same as the healthy threshold count.
This does not appear to be accurate.
- When I create an NLB target group manually in the AWS EC2 console and configure the health check manually, I can set the healthy/unhealthy counts to different values.
- There is no reference to this limitation in the CloudFormation documentation for
AWS::ElasticLoadBalancingV2::TargetGroupor any of its member attributes. - There is no attempt to validate this constraint in the CDK TypeScript code.
Links
- Impacted CDK documentation page: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.HealthCheck.html#unhealthythresholdcount
- Documentation source in GitHub. https://github.com/aws/aws-cdk/blob/v2.170.0/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/shared/base-target-group.ts#L135-L136
- Relevant CloudFormation documentation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2-targetgroup-unhealthythresholdcount
CDK Version
Last checked in documentation for v2.170.0.
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-elasticloadbalancingv2Related to Amazon Elastic Load Balancing V2Related to Amazon Elastic Load Balancing V2documentationThis is a problem with documentation.This is a problem with documentation.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp2
