I'm trying to communicate two services in Fargate, and when service A calls service B using the Route 53 name (not the IP) it says port 80: Connection refused.
In order to see what is going on I connected through SSH to an EC2 instance in the same vpc and everything works when I do the request using the private IP:port, but fails when I use the Route 53 name.
To me looks like I'm missing a step to either link the Route 53 name to the private IP:8080 instead of private IP:80 or, more likely, to redirect from port 80 to 8080 within the service B host.
Any idea on how to solve this?
Thanks!