Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
[44;97;1m π€ Plandex [0;0;22m π Add health checks for ECS container and ALB target group βοΈ Edits: β’ infra/src/main.ts β Add container health check β Add ALB target group health check
Dane Schneider9ed684f4e69b
diff --git a/infra/src/main.ts b/infra/src/main.tsindex 30dc9206..17a26e95 100644--- a/infra/src/main.ts+++ b/infra/src/main.ts@@ -229,6 +229,16 @@ export class PlandexStack extends cdk.Stack {// Add a container to the task definitionconst container = taskDefinition.addContainer("plandex-server", {+ healthCheck: {+ command: [+ "CMD-SHELL",+ "curl -f http://localhost:8080/health || exit 1"+ ],+ interval: cdk.Duration.seconds(30),+ timeout: cdk.Duration.seconds(5),+ retries: 3,+ startPeriod: cdk.Duration.seconds(60),+ },image: ecs.ContainerImage.fromEcrRepository(ecrRepository, imageTag),logging: new ecs.AwsLogDriver({ streamPrefix: "plandex-server" }),environment: {@@ -347,6 +357,16 @@ export class PlandexStack extends cdk.Stack {// Add a target group for the ECS service to the HTTPS listenerconst targetGroup = httpsListener.addTargets("plandexEcsTarget", {+ healthCheck: {+ path: "/health",+ port: "8080",+ protocol: elbv2.Protocol.HTTP,+ healthyHttpCodes: "200",+ interval: cdk.Duration.seconds(30),+ timeout: cdk.Duration.seconds(5),+ healthyThresholdCount: 2,+ unhealthyThresholdCount: 3,+ },port: 8080,targets: [fargateService],});