Skip to content

Commit fa51662

Browse files
authored
Merge pull request #180 from aws-samples/cdk
CDK upgrade to 2.184.0
2 parents 7eb9876 + d7008c2 commit fa51662

File tree

3 files changed

+184
-172
lines changed

3 files changed

+184
-172
lines changed

lib/constructs/ha-rpc-nodes-with-alb.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ export class HANodesConstruct extends cdkContructs.Construct {
120120
maxCapacity: 4,
121121
vpcSubnets: vpcSubnets,
122122
defaultInstanceWarmup: cdk.Duration.minutes(1),
123-
healthCheck: autoscaling.HealthCheck.elb({
124-
// Should give enough time for the node to catch up
125-
grace: cdk.Duration.minutes(albHealthCheckGracePeriodMin),
126-
}),
123+
healthChecks: autoscaling.HealthChecks.withAdditionalChecks({
124+
additionalTypes: [autoscaling.AdditionalHealthCheckType.ELB],
125+
gracePeriod: cdk.Duration.minutes(albHealthCheckGracePeriodMin)
126+
})
127127
});
128128

129129
rpcNodesAsg.addLifecycleHook("lifecycle-hook", {

0 commit comments

Comments
 (0)