codepipeline-demo: healthcheck

This commit is contained in:
Edward Viaene
2020-02-21 16:41:03 +01:00
parent 04cc267e86
commit 5dbbe77b4a
2 changed files with 1 additions and 4 deletions
-4
View File
@@ -33,10 +33,6 @@ resource "aws_codebuild_project" "demo" {
name = "IMAGE_REPO_NAME"
value = aws_ecr_repository.demo.name
}
environment_variable {
name = "IMAGE_TAG"
value = "latest"
}
}
source {
+1
View File
@@ -25,6 +25,7 @@ resource "aws_ecs_task_definition" "demo" {
},
"secrets": [],
"environment": [],
"healthCheck": [ "CMD-SHELL", "curl -f http://localhost:3000/ || exit 1" ],
"portMappings": [
{
"containerPort": 3000,