Skip to content

Commit

Permalink
set back to <
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol committed Feb 27, 2024
1 parent d98e32a commit af8d3e6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,9 @@ export abstract class TargetGroupBase extends Construct implements ITargetGroup
const timeoutSeconds = this.healthCheck.timeout?.toSeconds();

if (intervalSeconds && timeoutSeconds) {
if (intervalSeconds <= timeoutSeconds) {
ret.push('Health check interval must be greater than the timeout; received interval ' +
if (intervalSeconds < timeoutSeconds) {
// < instead of <= for backwards compatibility, see discussion in https://github.com/aws/aws-cdk/pull/26031
ret.push('Health check interval must be greater than or equal to the timeout; received interval ' +
`${intervalSeconds}, timeout ${timeoutSeconds}.`);
}
}
Expand Down

0 comments on commit af8d3e6

Please sign in to comment.