[GCP] ERROR: (gcloud.app.deploy) Permissions error fetching application [apps/project_name]
에러
ERROR: (gcloud.app.deploy) Permissions error fetching application [apps/project_name]. Please make sure that you have permission to view applications on the project and that your_account@developer.gserviceaccount.com has the App Engine Deployer (roles/appengine.deployer) role.
ERROR: (gcloud.app.deploy) Permissions error fetching application [apps/project_name]. Please make sure that you have permission to view applications on the project and that your_account@developer.gserviceaccount.com has the App Engine Deployer (roles/appengine.deployer) role.
원인
구글링해서 추가하라는 권한 모조리 추가했는데도 deploy가 안됐다.
2시간 정도 잡고있었는데 너무 머리가아파서 잠시 쉬었다가 다시 구글링 시작,,
그러다 이 글에서 명령어를 발견했다.
Do not have permission to access app while deploying google service account
After creating google service account with permission as shown below - deployment fails with message . I am failing to understand where this is going wrong. ==== $ gcloud iam service-accounts get...
stackoverflow.com
실행해준다.
gcloud auth login
해당 명령어를 입력하면 브라우저로 연결되며 해당 계정에 대한 인증을 요구한다.
모든 처리가 끝난 후 다시 gcloud app deploy 명령어를 실행하면 배포가 된다!
내 생각엔
1) 권한을 줬지만 갱신이 되지않아 반영되지 않았다. (하지만 이건 서버를 껏다키면 돼야하는거 아닌가..)
2) 인증까지 모두 거쳤어야했는데 그 과정이 빠진 계정이었다.
둘 중 하나가 아닐까.. 싶다.
개인적으로 공부한 내용을 정리하는 블로그로
잘못된 개념을 게시하지않도록 주의하고 있으나 오류가 있을 수 있습니다.