mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 07:01:56 +03:00
codepipeline-demo: healthcheck
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user