- Newest
- Most votes
- Most comments
Hello,
I understand that you are facing issue with connectivity between 2 ECS Services.
To test connectivity between 2 services, you can consider to perform the following:
-> Exec into the container of Task running in Service A and try reaching out to another service. Also try vice versa and if the connectivity is fine then that means both the services can reach each other and communicate as well.
-> Also you can test the connectivity for the service discovery endpoint of service B from service A
-> We can make use of dig or curl commands to <Service discovery endpoint> to check endpoint connectivity
This would help us to isolate the issue from networking side and further narrow down whether the issue is at application level or not. Also if our Tasks are healthy and we are using gRPC to connect 2 services, then it is also possible that error is coming from application container. However as mentioned above, the connectivity testing will help us to identify the cause of issue.
References:
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html
Relevant content
- Accepted Answerasked 2 months ago
- App with 2 microservices - should they run in two ECS clusters or two services in single ECS clusterAccepted Answerasked 2 years ago
- Accepted Answerasked 2 years ago
- Accepted Answerasked 4 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago