The validateTargetGroup method in the NetworkTargetGroup class has a check to ensure the healthy and unhealthy threshold counts are the same (https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-target-group.ts#L262-L268), but this does not appear to be a requirement of AWS.
➜ aws elbv2 describe-target-groups --target-group-arns [omitted] --query 'TargetGroups[0].[HealthyThresholdCount,UnhealthyThresholdCount]'
[
5,
5
]
Expected Behavior
The NetworkTargetGroup is created
Current Behavior
An error message of Healthy and Unhealthy Threshold Counts must be the same.
Reproduction Steps
Create a NetworkTargetGroup with differing healthy and unhealthy threshold counts.
Possible Solution
Remove https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-target-group.ts#L262-L268
Additional Information/Context
No response
CDK CLI Version
2.91.0
Framework Version
No response
Node.js Version
18.17.1
OS
macOS 13.5.1
Language
Python
Language Version
3.9.16
Other information
No response
The
validateTargetGroupmethod in theNetworkTargetGroupclass has a check to ensure the healthy and unhealthy threshold counts are the same (https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-target-group.ts#L262-L268), but this does not appear to be a requirement of AWS.Expected Behavior
The
NetworkTargetGroupis createdCurrent Behavior
An error message of
Healthy and Unhealthy Threshold Counts must be the same.Reproduction Steps
Create a
NetworkTargetGroupwith differing healthy and unhealthy threshold counts.Possible Solution
Remove https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-target-group.ts#L262-L268
Additional Information/Context
No response
CDK CLI Version
2.91.0
Framework Version
No response
Node.js Version
18.17.1
OS
macOS 13.5.1
Language
Python
Language Version
3.9.16
Other information
No response