title: How to git pull using aws code deploy
body: <p>Suppose we already have:</p>
  
  <ol>
  <li>Existing infrastructure with few instances in a load balancer</li>
  <li>Existing github account and application already deployed in the instances</li>
  </ol>
  
  <p>How can I achieve following using aws code-deploy?</p>
  
  <p>We have multiple commits since last pull to production servers, how can we achieve git pull on production multiple instances using code-deploy.</p>
  
  <ol>
  <li>Pull out an instance from load balancer </li>
  <li>git pull</li>
  <li>restart/reload server</li>
  <li>instance Add instance again to the load balancer</li>
  </ol>
  
  <p>Kindly suggest.</p>
  
  <p>Thanks in advance.</p>