Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

 πŸ€– Plandex  πŸ“ Fix initialization of FargateService in main.ts ✏️ Edits: β€’ infra/src/main.ts βœ… Correctly initialize the Fargate service

Dane Schneider54970b4eb739
diff --git a/infra/src/main.ts b/infra/src/main.ts
index 93324e95..639583dd 100644
--- a/infra/src/main.ts
+++ b/infra/src/main.ts
@@ -151,7 +151,12 @@ export class PlandexStack extends cdk.Stack {
"Allow Fargate service to access RDS instance"
);
- const fargateService = new ecs.FargateService
+ const fargateService = new ecs.FargateService(this, `plandex-fargate-service-${tag}`, {
+ cluster: ecsCluster,
+ taskDefinition,
+ desiredCount: 1,
+ securityGroups: [fargateServiceSecurityGroup],
+ });
// Define the scaling target
const scaling = fargateService.autoScaleTaskCount({