Develop/서버

Github Action 오류 해결 : InvalidParameterValue

안다희 2023. 2. 8. 14:07
728x90

첫번째 InvalidParameterValue 오류

An error occurred (InvalidParameterValue) 
when calling the UpdateEnvironment operation: 
Environment named xxx is in an invalid state for this operation. 
Must be Ready.
환경 상태가 ok가 아닌 다른 상태면 github action 도중 오류가 나는 것 같다. 사진처럼 ok 상태일 때 배포를 다시 진행해보자!
 
 
 
 
두번째 InvalidParameterValue 오류
An error occurred (InvalidParameterValue) 
when calling the UpdateEnvironment operation: 
No Application Version named 'aaa' found.
 

위 사진에서 {환경이름} 에 있는 값과 실제 명령문에서의 {환경이름} 이 달라서 생긴 문제였다.

명령문은 아래와 같았다.

aws elasticbeanstalk update-environment 
--region ap-northeast-2 
--environment-name bbb
--version-label cron

bbb 자리에 aaa가 들어가야 한다. 따라서 아래와 같이 수정해주면 된다.

aws elasticbeanstalk update-environment 
--region ap-northeast-2 
--environment-name aaa
--version-label cron

 

 

 

이제 다시 서버 배포하자!!