I have created an API that has two endpoints. I containerized that API and deployed that into the ECS Fargate container behind the Application Load Balancer. End Points.
- Get = Return the status of the API
- Post = Insert data into the RDS.
api/v1/healthcheck is working
api/v1/insertRecord is not working => 502 bad Gateway
The problem I am running into is that I am able to get the HealthCheck response but I am not able to make the Post API call I am getting 502 Bad Gateway error
My target group is directed to the healthcheck endPoint so my ecs stays up. Can someone plz tell me where am I making mistake?