title: How to automatically run consul agent and registrator container on scaling ECS instance
body: <p>I have created a consul cluster of three nodes. Now <strong>I need to run consul agent and registrator containers and join consul agent with one of the consul server node whenever I up ECS instance or scale out ECS instance on which I'm running my micro services.</strong></p>
  
  <p>I have automated rest of the deployment process with rolling updates. <em>But I have to manually start up consul agent and registrator whenever I scale out ECS instance.</em></p>
  
  <p>Anyone have idea how can we automate this?</p>