DEV Community

taragurung
taragurung

Posted on

1 2

How to make the services communicate in AWS ECS?

I have multiple service running on AWS ECS. Now, I am trying to connect one service with another using the build in service discovery. When creating a services It's successfully creating a SRV and mapping to A records in Route53.

The problem is I am not able to connect using the Service Discovery Endpoint. It's not resolving the name

Example:

Service1: Runs Task definition: To run nginx-phpfpm
Service2: Runs Task definition: to run redis

Goal is to make the Service1 communicate with Service2

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more