Category / Section
How to resolve ELB health check failure on ECS deployment.
Published:
This section explains how to resolve the ELB health check failure on ECS deployment, as shown in the image below:
The ALB health check may fail because it does not meet the correct success code in the target group. Therefore, follow the steps below to resolve the health check issue.
- Please navigate to the EC2 -> Target groups -> Health checks -> Advanced health check settings in the AWS console page. Then, change the success code from 200 to 302.
- After changing the success code, it looks like the image below.
- Once the success code is updated in the target group, a new task will be created in the ECS cluster service.
Note: It will take some time to create the new task. Alternatively, manually stop the running task. After stopping the task, a new task will be automatically created in the ECS cluster service.