blog

Code Deploy 배포루틴 오류 수정 - appspec.yml 을 못찾는 현상

날짜: 2024-07-24

목록으로


사건 요약

당시 Jenkins log

ERROR: Step ‘Deploy an application to AWS CodeDeploy’ failed: null

당시 AWS 콘솔 - Code Deploy log

CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server

당시 Code Deploy Agent log

"message\":\"The CodeDeploy agent did not find an AppSpec file within the unpacked revision directory at revision-relative path \\\"appspec.yml\\\". The revision was unpacked to directory \\\"/opt/codedeploy-agent/deployment-root/071ec243-42c7-4ecc-b489-f4829c35c3f3/d-SVEDXQTU5/deployment-archive\\\", and the AppSpec file was expected but not found at path \\\"/opt/codedeploy-agent/deployment-root/071ec243-42c7-4ecc-b489-f4829c35c3f3/d-SVEDXQTU5/deployment-archive/appspec.yml\\\". Consult the AWS CodeDeploy Appspec documentation for more information at http://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file.html\"

목록으로