I set up CodeCommit -> CodePipeline -> CodeDeploy and the deploy fails, but the files I commited to CodeCommit show up in
/opt/codedeploy-agent/deployment-root/b20baedc-1ba0-408e-b74c-8615b3d87f74/d-AN5IXPSZJ/deployment-archive
This is the error message I get when the deployment fails:
Deployment Failed
The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems. (Error code: HEALTH_CONSTRAINTS)
I would like the files to be put into /src/website/website-name
CodeDeploy uses an appspec.yml file to define where the deployment should end up.
If you look at this AppSpec File Example you'll see how source and destination is defined. Check that your
destination:correctly points to/src/website/website-name.