title: How to ship java based web application in AWS cloud using docker
body: <p>We have build java web application which provides various REST API.. I would like to have painless deployment progress.. Here is desired scene..</p>
  
  <p>Users -> Load Balancer -> AS1, AS2, AS3 ...</p>
  
  <p>Here AS = Application Server (Tomcat on EC2) OR Docker instances (I will prefer docker instances)</p>
  
  <p>First time Desired Flow:</p>
  
  <ol>
  <li>Developer fires maven and builds .war file</li>
  <li>We may develop script which will generate docker image using this .war file..</li>
  <li>Executes steps which will float this dockers behind ELB</li>
  </ol>
  
  <p>Redeployment:</p>
  
  <ol>
  <li>Developer fires maven and builds .war file</li>
  <li>We may develop script which will generate docker image using this .war file..</li>
  <li>Executes steps which will float this dockers behind ELB and destroy previous one..</li>
  </ol>
  
  <p>I am kind of new to DevOps and may be doing some mistake in above steps.  So please feel free to correct me and provide guidance to achieve this goal.</p>
  
  <p>(If this is duplicate please provide link to related question)</p>
  
  <p>Thanks in advance.</p>