Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(elbv2): NetworkTargetGroup is overly restrictive when setting healthCheckInterval #24156

Closed
peterwoodworth opened this issue Feb 14, 2023 · 1 comment · Fixed by #24157
Closed
Labels
bug This issue is a bug. effort/small Small work item – less than a day of effort p1

Comments

@peterwoodworth
Copy link
Contributor

Describe the bug

NetworkTargetGroup only allows you to select 10 or 30 seconds for the health check interval. The allowed range is from 5 to 300.

Expected Behavior

I expect to be able to set the health check interval anywhere from 5 to 300 seconds

Current Behavior

I can only set the health check interval to be 10 or 30 seconds

Reproduction Steps

    const nlbService = new NetworkLoadBalancedFargateService(this, 'NlbFargatePattern', {
      taskDefinition,
    });

    nlbService.targetGroup.configureHealthCheck({
      interval: cdk.Duration.seconds(25)
    });

This will produce the following error message

Health check interval '25' not supported. Must be one of the following values '10,30'.

Possible Solution

Will submit PR

Additional Information/Context

No response

CDK CLI Version

2.64

Framework Version

No response

Node.js Version

16

OS

mac

Language

Typescript

Language Version

No response

Other information

No response

@peterwoodworth peterwoodworth added bug This issue is a bug. p1 effort/small Small work item – less than a day of effort labels Feb 14, 2023
@mergify mergify bot closed this as completed in #24157 Feb 14, 2023
mergify bot pushed a commit that referenced this issue Feb 14, 2023
The health check interval of network target groups can only be set to 10 or 30 seconds. [The allowed range is 5-300
](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/target-group-health-checks.html)
Closes #24156

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. effort/small Small work item – less than a day of effort p1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant