Cloud/AWS

AWS CodeDeploy 배포 실패 - '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 insta..

ysk(0soo) 2022. 5. 31. 15:33

AWS CodeDeploy를 이용하여 EC2에 배포하던중 다음과 같은 오류가 발생하여 다음 방법으로 해결하였습니다.

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.

  • 인스턴스를 태그할 태그 그룹의 키를 Name으로 안하고 다른 key값 으로해서 생긴 문제였습니다.

  • 태그 이름의 매칭 실패에 관한 에러입니다.

  • 배포 그룹 내에서의 EC2 태그 'Name'과 인스턴스의 이름이 매칭하지 않아서 생긴 문제입니다.

  • 태그 그룹의 키(key)는 Name, 값(value)은 인스턴스의 이름과 같아야 합니다.

  • key는 Name으로 해야 합니다! 그렇지않으면 같은 오류가 발생합니다.