인프런 커뮤니티 질문&답변

rltjs3563님의 프로필 이미지

작성한 질문수

비전공자도 이해할 수 있는 CI/CD 입문·실전

[실습] 확장성을 고려한 프로젝트에서 많이 쓰는 CI/CD 구축 방법

배포 실패

해결된 질문

24.06.21 23:39 작성

·

153

0

에러 메시지

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.

CodeDeploy 공식문서 참조

less /var/log/aws/codedeploy-agent/codedeploy-agent.log
/ ERROR

에러 메시지

InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Error during perform: Aws::S3::Errors::NoSuchKey - The specified key does not exist. - /opt/codedeploy-agent/vendor/gems/aws-sdk-core-3.121.1/lib/seahorse/client/plugins/raise_response_errors.rb:17:in call

 

혹시나 하고 CodeDeploy Agent restart 재시작

EC2인스턴스 IAM 재설정

yaml 마지막부분 \ 인식하게 수정

다 안되네요...

답변 1

0

JSCODE 박재성님의 프로필 이미지
JSCODE 박재성
지식공유자

2024. 06. 22. 09:06

안녕하세요 rltjs3563님!

 

위에서 보여주신 에러 메시지를 보면

Aws::S3::Errors::NoSuchKey - The specified key does not exist.

라고 적혀져있는 걸로 봐서 S3의 파일을 제대로 찾지 못하는 현상으로 보입니다.

 

image

위 Github Actions에서 S3에 관련된 코드에서 경로를 잘 입력했는 지 체크해보셔도 좋을 것 같습니다.

그리고 Github Actions를 실행시킨 이후에 S3로 정상적으로 파일이 잘 전송됐는 지 확인해보셔도 좋을 것 같습니다.

 

위 과정을 디버깅 해보시고도 어떤 게 문제인지 파악이 안 될 경우 또 질문 남겨주세요:D