title: Configuring AWS ECS cluster to be load-balanced and auto-scaling behind a DNS
body: <p>I have a recently-Dockerized web app that I'm trying to get running in AWS ECS. I'm using Route 53 for the DNS.</p>
  
  <p>Although I haven't set it up yet in Route 53, my plan is to create a DNS record of <code>api.uat.myapp.example.com</code>, and what I want is to have that domain name backed by an load-balanced, autoscaleable cluster of my containers living in ECS.</p>
  
  <p>I'm in the ECS Container Network Configuration tab:</p>
  
  <p><a href="https://i.stack.imgur.com/vw4Ts.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vw4Ts.png" alt="enter image description here"></a></p>
  
  <p>Press the "<em>I believe!</em>" button for a minute and let's pretend that I've already created the <code>api.uat.myapp.example.com</code> domain name in Route 53. What values/configs do I need to add here so that:</p>
  
  <ul>
  <li>When remote clients try to connect to <code>api.uat.myapp.example.com</code> they get routed to a load-balanced container running in my ECS cluster?; and</li>
  <li>That load-balanced ECS cluster is auto-scaling (once I figure out <em>where</em> I can configure auto-scaling properties, I'm sure I can figure out <em>how</em> to configure them!)</li>
  </ul>