codepipeline - healthcheck fixes

This commit is contained in:
Edward Viaene
2020-02-21 20:41:44 +01:00
parent 5dbbe77b4a
commit a939c15fb4
+5 -1
View File
@@ -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,