From a939c15fb4a009ca972498295d5972f00d6ea592 Mon Sep 17 00:00:00 2001 From: Edward Viaene Date: Fri, 21 Feb 2020 20:41:44 +0100 Subject: [PATCH] codepipeline - healthcheck fixes --- codepipeline-demo/fargate-service.tf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/codepipeline-demo/fargate-service.tf b/codepipeline-demo/fargate-service.tf index 64f3b68..e6ec0c9 100644 --- a/codepipeline-demo/fargate-service.tf +++ b/codepipeline-demo/fargate-service.tf @@ -25,7 +25,11 @@ resource "aws_ecs_task_definition" "demo" { }, "secrets": [], "environment": [], - "healthCheck": [ "CMD-SHELL", "curl -f http://localhost:3000/ || exit 1" ], + "healthCheck": { + "command": [ "CMD-SHELL", "curl -f http://localhost:3000/ || exit 1" ], + "interval": 30, + "retries": 3 + }, "portMappings": [ { "containerPort": 3000,