I have a project which contains 6 graphql subgraphs and one gateway (express server) that federates those and connects to those. I have deployed this project on aws, each of those servers represents an ECS task and a load balancer attached to it. All of the graphql servers are up and running, but gateway is failing because of health checks.
I get the logs that server has started, but after that, load balancer performs health checks and the ecs task fails and starts over.
I don't know how to debug this because the health check configurations (path, status etc.) are correct and calling the health check path on local succeeds.
What am I missing and how can I set everything up? Thank you in advance.