본문 바로가기

Error

Codedeploy 배포 에러 [The deployment failed because no instances were found for your deployment group.]

오류코드


The deployment failed because no instances were found for your deployment group. Check your deployment group settings to make sure the tags for your Amazon EC2 instances or Auto Scaling groups correctly identify the instances you want to deploy to, and then try again.

 

 

문제


  • AWS CodeDeploy CD설정 중 발생한 오류
    • 상황
      • github actions, AWS ec2, S3, CodeDeploy를 사용하여 CI/CD 구현

원인

  • 어떤 인스턴스에 배포를 해야할지 식별을 할 수 없어 발생하는 문제

 

해결

  • 식별가능하게 ec2의 태그와 CodeDeploy의 배포그룹의 Name 태그를 같게 설정
    • → 즉, ec2의 이름과 배포그룹의 태그 값을 같게 설정

ec2

  • Key 값을 Name, Value는 자유롭게 설정

 

배포 그룹

  • 배포 그룹 생성시 태그 작성
    • Key → “Name”
    • Value → ec2의 태그 Name의 Value와 같아야 함

 

 
 
 
 

'Error' 카테고리의 다른 글

[GIT] fatal: bad object refs/heads/{branch}  (0) 2023.08.27