title: AWS CodeDeploy integration with GitLab
body: <p>I have set up two EC2 instances in a private subnet behind a NAT.
  The instances are both in a AutoScalling group.
  I want to integrate CodeDeploy with my repository from GitLab.</p>
  
  <p>All I can think of now is running a script on the BeforeInstall hook of the appspec.yml file.</p>
  
  <p>Is there another way to do this?</p>