title: AWS ECS: How to communicate between services within ECS Cluster without using ALB? Is there a way?
body: <p>Suppose I have a service say <em>auth</em>(port:8080) which has 3 tasks running and let's say I have another service say <em>config-server</em>(port:8888), 2 tasks running, where <em>auth</em> will load the configuration properties from, similar to spring cloud config server.</p>
  
  <p><strong>Launch Type: EC2</strong></p>
  
  <p><strong><em>auth</em> service running on 8080 |
  <em>config-server</em> service running on 8888</strong></p>
  
  <p>Now, in order to access <em>config-server</em> from <em>auth</em>, do I have to use ALB to call <em>config-server</em> or I can call using service name, like <a href="http://config-server:8888" rel="nofollow noreferrer">http://config-server:8888</a>? </p>
  
  <p>I tried but it's not working. Did I misunderstand any concept here? </p>
  
  <p>I would like to get some insight on this.
  This is how my <a href="https://i.stack.imgur.com/N5dsk.png" rel="nofollow noreferrer">Service Discovery Configuration</a> looks like.</p>
  
  <p>EDITS:</p>
  
  <p>I created a private namespace test.lo and still not working..</p>
  
  <blockquote>
    <p>curl <a href="http://config-server.test.lo" rel="nofollow noreferrer">http://config-server.test.lo</a>
    curl: (6) Could not resolve host: config-server.test.lo</p>
  </blockquote>