The load balancer marked every target unhealthy
- Problem
- Tasks were running but requests through the ALB returned a 502 Bad Gateway. The targets were not healthy.
- Root cause
- The task security group was not allowing the container port from the load balancer's security group.
- Fix
- Allowed the container port on the task security group from the ALB security group specifically, not a CIDR range. The targets became healthy and requests reached Snipe-IT.