File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ module "web_service" {
31
31
task_role_arn = aws_iam_role.ecs_task_role.arn
32
32
log_group_name = aws_cloudwatch_log_group.ecs_log_group.name
33
33
region = var.region
34
- health_check_command = [" CMD-SHELL" , " curl -f http://localhost:4000/up || exit 1" ]
34
+ health_check_command = [" CMD-SHELL" , " curl -f http://localhost:4000/health/database || exit 1" ]
35
35
}
36
36
network_params = {
37
37
subnets = [aws_subnet.private_subnet_a.id, aws_subnet.private_subnet_b.id]
@@ -70,7 +70,7 @@ module "good_job_service" {
70
70
task_role_arn = aws_iam_role.ecs_task_role.arn
71
71
log_group_name = aws_cloudwatch_log_group.ecs_log_group.name
72
72
region = var.region
73
- health_check_command = [" CMD-SHELL" , " curl -f http://localhost:4000 || exit 1" ]
73
+ health_check_command = [" CMD-SHELL" , " curl -f http://localhost:4000/status/connected || exit 1" ]
74
74
}
75
75
network_params = {
76
76
subnets = [aws_subnet.private_subnet_a.id, aws_subnet.private_subnet_b.id]
You can’t perform that action at this time.
0 commit comments