Skip to content

Commit

Permalink
changer to less than equal to, remove doc link
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol committed Feb 26, 2024
1 parent 7ddb38e commit dffea61
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,7 @@ export abstract class TargetGroupBase extends Construct implements ITargetGroup
const timeoutSeconds = this.healthCheck.timeout?.toSeconds();

if (intervalSeconds && timeoutSeconds) {
if (intervalSeconds < timeoutSeconds) {
// see https://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_HealthCheck.html
if (intervalSeconds <= timeoutSeconds) {
ret.push('Health check interval must be greater than the timeout; received interval ' +
`${intervalSeconds}, timeout ${timeoutSeconds}.`);
}
Expand Down

0 comments on commit dffea61

Please sign in to comment.