From ed246a07110be0635312e10e9409ca23bd3ec7f6 Mon Sep 17 00:00:00 2001 From: Rick Ootes Date: Wed, 11 Sep 2024 23:41:01 +0200 Subject: [PATCH] fix(docker-cluster): syntax error --- packages/cdk-docker-cluster/src/constructs/DockerCluster.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cdk-docker-cluster/src/constructs/DockerCluster.ts b/packages/cdk-docker-cluster/src/constructs/DockerCluster.ts index c3d63006..292bb524 100644 --- a/packages/cdk-docker-cluster/src/constructs/DockerCluster.ts +++ b/packages/cdk-docker-cluster/src/constructs/DockerCluster.ts @@ -50,7 +50,7 @@ interface SourceProps { /** * An Docker cluster on a load balanced Fargate service on EC2, using an image * built from a Dockerfile in a directory and pushed to ECR. - * @todo Make the distribution and laod balancer optional, to reduce cost and + * @todo Make the distribution and load balancer optional, to reduce cost and * increase deployment speed for development environments. */ export class DockerCluster extends Construct { @@ -119,7 +119,7 @@ export class DockerCluster extends Construct { }); if (typeof this.props.service?.tasks === "object") { - this.service.service.autoScaleTaskCount({ + service.service.autoScaleTaskCount({ minCapacity: this.props.service?.tasks.minimum, maxCapacity: this.props.service?.tasks.maximum, });