title: Automate code deploy from Git lab to AWS EC2 instance
body: <p>We're building an application for which we are using <strong><em>GitLab</em></strong> repository. Manual deployment of code to the test server which is <strong>Amazon AWS EC2 instance</strong> is tedious, I'm planning to automate deployment process, such that when we commit code, it should reflect in the test instance.</p>
  
  <p>from my knowledge we can use <strong>AWS code-deploy</strong> service to fetch the code from <strong>GitHub.</strong> But <strong><em>code deploy service does not support GitLab repository .</em></strong> Is there a way to automate the code deployment process to AWS Ec2 instance through GitLab. or Is there a shell scripting possibility to achieve this? Kindly educate me.</p>