I'm trying to reach a service running in ECS which have service discovery
enabled.
Currently, I cannot resolve the dns. Been stuck on this for over 16hours...
All the links in google are purple :D I'm actually considering looking at page 2 of the google results!
Joking aside, I'm pretty sure I'm missing a very simple stupid detail to make it all work. Anyone has an idea what I should be looking at? Is there a required policies I could be missing?
Here a few keypoint of my situation. Can provide more information if required.
- Everything is created with
terraform
- I'm using a private namespace
- The same vpc is set for the lambda and the service
- Record is
SRV
and listed in route53 when the service is running - The service is accessible if I use the ip defined under the record in route53
- The network mode is 'bridge'
- The lambda is in python so I tried
dnspython
to get more info. All I get isNXDOMAIN
error. - I launch an ec2 in the same vpc and used
dig
and also got aNXDOMAIN
error.