Hey guys, I've been trying to figure out how to make a REST call from one ECS EC2 instance to another.
To give some context.
These ECS clusters are both on the same private subnet.
One instance is acting as our public API and the other instance is acting as a secondary service that the public API calls.
Both ECS instances are setup in awsvpc network mode.
I thought that it would be possible to call one instance from another by using the private ip, but this seems to fail.
In order to make the request, I'm using axios on an Express server.
After I deploy the API and call the endpoint that then calls the endpoint to the other service, it hangs.
I ran the Reachability Analyzer using the network interfaces and came back successful.
Any suggestions on how I can go about doing this?
Thanks in advance!