I am trying to deploy my GITLabs repository code to my AWS instance on every commit i do on repo.
I have created webhook using ZipDownloadWebHookApi URL form Output tab of my stack. I have followed this link for doing all the stuff.
I am using the stack cloud template specified here
The zip which is being created by cloudFormation inside specified S3 Bucket is having a subfolder, which is containing whole git repository code.
So the issue I am facing is, when I use this zip as an object in AWS CodeDeploy it does not find the appspecs.yml file and deployment stops before beforeInstall event with following error-
No such file or directory - /opt/codedeploy-agent/deployment-root/1d0d3a00-435a-4td1-87d8-4ad40222e6f9/d-LJS5Q7WGN/deployment-archive/appspec.yml
Can you please suggest me what should I follow after this to achieve my goal?