Skip to content

Target group configuration could include better validation #3703

@markusl

Description

@markusl

🚀 Feature Request

General Information

If user accidentally writes the following code, it will be rejected when deploying:

target.configureHealthCheck({
        interval: cdk.Duration.seconds(60),
        timeout: cdk.Duration.seconds(60),
        healthyThresholdCount: 2,
        unhealthyThresholdCount: 5,
      })

Health check interval must be greater than the timeout. (Service: AmazonElasticLoadBalancingV2; Status Code: 400; Error Code: ValidationError; Request

Proposed Solution

This kind of validations could be done already in CDK to speed up the development cycle.

Environment

  • CDK CLI Version: 1.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-elasticloadbalancingRelated to Amazon Elastic Load Balancingeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions