Reputation: 11
I have issues in Fargate with service discovery.
Starting from this template: https://github.com/pjlewisuk/fargate-refarch-cloudformation, I added a "private" service reachable only from other containers. I enabled service discovery on the private service.
Everything looks fine: the namespace is added in Routed 53 and I can see my discovery service with an instance registered in CloudMap.
Nonetheless, when I try to reach that private task from another one via (http://servicename.namespace), I always get 'getaddrinfo ENOTFOUND'.
Anyone has any idea how to fix it? Thanks in advance.
Upvotes: 0
Views: 2223
Reputation: 472
Did you enable the following properties in your VPC ?
"enableDnsHostnames": true
"enableDnsSupport" : true
Upvotes: 5