title: AWS ECS Fargate ALB Error (Request Timed Out)
body: <p>I have set up a Docker container running on port 5566 with a small Django application. The Docker image is uploaded into the ECR and later used by Fargate container(s).<br>
  I have set up an ECS cluster with a VPC.<br>
  After creating the Task Definition and Service, the Service starts up 2 tasks (as it is supposed to):</p>
  
  <p><a href="https://i.stack.imgur.com/mQoyh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mQoyh.png" alt="Fargate Service Running"></a></p>
  
  <p>Here's the Service's Network Access (with health check grace period on 300s):</p>
  
  <p><a href="https://i.stack.imgur.com/Gncpm.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/Gncpm.jpg" alt="enter image description here"></a></p>
  
  <p>I also set up an Application Load Balancer (with DNS) with a target group for the service, but the health checks seem to be failing:</p>
  
  <p><a href="https://i.stack.imgur.com/EqQ6W.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EqQ6W.png" alt="enter image description here"></a></p>
  
  <p>Here's the health check configuration:</p>
  
  <p><a href="https://i.stack.imgur.com/1Vwgf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1Vwgf.png" alt="enter image description here"></a></p>
  
  <p>Because the health checks are failing the tasks are terminated and new ones are started after ~every 5 minutes. </p>
  
  <p>Here's the container's port mapping:</p>
  
  <p><a href="https://i.stack.imgur.com/bgZRH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bgZRH.png" alt="enter image description here"></a></p>
  
  <p>As one cannot access the Fargate container (via SSH for example) and the logs are empty, how should I troubleshoot the issue?</p>
  
  <p>I have tried to follow every step in the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-troubleshooting.html" rel="noreferrer">Troubleshoot Your Application Load Balancer</a>.</p>
  
  <p>Feel free to ask additional information.</p>