mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-28 21:01:57 +03:00
codepipeline-demo: healthcheck
This commit is contained in:
@@ -33,10 +33,6 @@ resource "aws_codebuild_project" "demo" {
|
|||||||
name = "IMAGE_REPO_NAME"
|
name = "IMAGE_REPO_NAME"
|
||||||
value = aws_ecr_repository.demo.name
|
value = aws_ecr_repository.demo.name
|
||||||
}
|
}
|
||||||
environment_variable {
|
|
||||||
name = "IMAGE_TAG"
|
|
||||||
value = "latest"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
source {
|
source {
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ resource "aws_ecs_task_definition" "demo" {
|
|||||||
},
|
},
|
||||||
"secrets": [],
|
"secrets": [],
|
||||||
"environment": [],
|
"environment": [],
|
||||||
|
"healthCheck": [ "CMD-SHELL", "curl -f http://localhost:3000/ || exit 1" ],
|
||||||
"portMappings": [
|
"portMappings": [
|
||||||
{
|
{
|
||||||
"containerPort": 3000,
|
"containerPort": 3000,
|
||||||
|
|||||||
Reference in New Issue
Block a user