2016-07-15 3 views
1

Google Compute에서 오류가 발생하여 인스턴스를 만들려고합니다.gcloud 명령으로 인스턴스를 만들 수 없습니다.

gcloud compute instances create 'my-instance' 
For the following instances: 
- [my-instance] 
choose a zone: 
[1] asia-east1-b 
[2] asia-east1-c 
[3] asia-east1-a 
[4] europe-west1-c 
[5] europe-west1-b 
[6] europe-west1-d 
[7] us-central1-f 
[8] us-central1-a 
[9] us-central1-c 
[10] us-central1-b 
[11] us-east1-b 
[12] us-east1-d 
[13] us-east1-c 
Please enter your numeric choice: 11 

ERROR: (gcloud.compute.instances.create) Some requests did not succeed: 
- The resource '[email protected]' of type 'serviceAccount' was not found. 

리소스가 IAM 또는 ServiceAccount 목록에 없습니다.

답변

1

First assure you have initialized your gcloud account ...

gcloud auth login 

다음은 (이전에 구글에 로그인 한) 브라우저에 붙여 넣기 설명으로 문제를 넣어 브라우저 토큰 다시 명령 행으로 생성 ... 그 행복 일단 완료되었습니다. 지금 클러스터를 실행하십시오. 서비스 계정을 사용하여 멋지게하려면 (필요 없음) 설정을 수행하고

gcloud auth activate-service-account # optional 
관련 문제