-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat(ecs): set default HealthCheckGracePeriodSeconds
#2942
Conversation
…rvice to 60 seconds if it's not already set and at least one load balancer is configured This was a FIXME in the ECS CDK codebase. Closes #2936.
HealthCheckGracePeriodSeconds
in base-se…HealthCheckGracePeriodSeconds
HealthCheckGracePeriodSeconds
HealthCheckGracePeriodSeconds
healthCheckGracePeriodSeconds: props.healthCheckGracePeriodSeconds, | ||
// only set the grace period when load balancers are configured and | ||
// healthCheckGracePeriodSeconds is not already set | ||
healthCheckGracePeriodSeconds: Lazy.anyValue({ produce: () => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this to a helper private method for readability?
|
@pkandasamy91 |
# Conflicts: # packages/@aws-cdk/aws-ecs/lib/base/base-service.ts
…econds` into a private helper method as requested
@rix0rrr Could you give me console access to the AWS account you guys are using for the "AWS CodeBuild us-east-1" check. Otherwise I can't see what's causing the check to fail. Thanks! |
healthCheckGracePeriodSeconds: props.healthCheckGracePeriodSeconds, | ||
// only set the grace period when load balancers are configured and | ||
// healthCheckGracePeriodSeconds is not already set | ||
healthCheckGracePeriodSeconds: Lazy.anyValue({ produce: () => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be a Lazy.numberValue()
, no?
// only set the grace period when load balancers are configured and | ||
// healthCheckGracePeriodSeconds is not already set | ||
healthCheckGracePeriodSeconds: Lazy.anyValue({ produce: () => | ||
this.loadBalancers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.loadBalancers
should never be undefined. Should we not make the default an empty array? Gets rid of the test here.
Default HealthCheckGracePeriodSeconds in BaseService to 60 seconds if it's not already set and at least one load balancer is configured.
Closes #2936.
Pull Request Checklist
design
folderBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.