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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs