ECS Fargate - CloudMap Service Discovery not working.

1

Hello

I have created a private clodmap namespace in a VPC and deployed 3 ECS services in to the VPC. My VPC has DNS resolution enabled. On the ECS dashboard I can see the corresponding service discovery names for my services and they all match the records on CloudMap and route 53 hosted zone.

My problem is, from service A, I can not reach to service B using service discovery names even though the resources are inside the same fargate cluster. Interestingly, I can reach from A to B if I use the internal IP address. I believe there is a problem in the resolution of the dns, since there is no response to the dig command.

I am attaching the logs when I execute a dig command from service A to B.

I really appreciate any help, thanks!

Enter image description here Enter image description here

已提问 2 年前747 查看次数
3 回答
0

I do not think that there is a problem with the security groups since I can reach the service from a container using the internal IP address that I see on the Cloud Map console. I would expect no response from the IP address, if there is a problem with the security groups.

Enter image description here

已回答 2 年前
0

"The easiest solution to a problem I've been grappling with for weeks is finally here! Check out how I resolved it: AWS ECS Service Connect: Enabling Communication Between ECS Services. For more comprehensive details, visit our complete playlist: AWS ECS Comprehensive Series. Don’t forget to subscribe for more updates: Prograamer YouTube Channel."

Aamer
已回答 7 天前
-1

Have you configured the security group for each ECS service?

已回答 2 年前
  • what do you mean by configuring the security group? configure it how?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则