title: AWS Route 53 - Domain name route to different ports of an Application load balancer
body: <p>We are implementing a micro-services architecture in AWS. We have several EC2 instances which has the micro-services deployed on different ports. We also have an internet facing Application Load Balancer, which routes to different services based on the port. </p>
  
  <pre><code>eg: 
  xxxx-xx.xx.elb.amazonaws.com:8080/ go to microservice 1 
  xxxx-xx.xx.elb.amazonaws.com:8090/ go to microservice 2
  </code></pre>
  
  <p>We need to have a domain name instead of the ELB, the port should not be exposed through the domain name as well. Almost all the resources I found regarding route 53, use alias which does the following:</p>
  
  <pre><code>xx.xxxx.co.id -&gt; xxxx-xx.xx.elb.amazonaws.com or
  xx.xxxx.co.id -&gt; 111.111.111.11 (static ip)
  </code></pre>
  
  <p>1) Do we need separate domains for each micro service?</p>
  
  <p>2) How to use alias to point domains to a specific port of the ELB?</p>
  
  <p>3) Is it possible to use this setup if the domains are from another provider other than AWS.</p>