google compute engine - unable to create instance with gcloud command -
i'm trying create instance in google compute getting error.
gcloud compute instances create 'my-instance' following instances: - [my-instance] choose 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 numeric choice: 11 error: (gcloud.compute.instances.create) requests did not succeed: - resource 'xxxxx@project.gserviceaccount.com' of type 'serviceaccount' not found.
the resource isn't listed in iam or serviceaccount lists.
first assure have initialized gcloud account ... issue
gcloud auth login
then explains paste browser (which have logged google) , put browser generated token onto command line ... once happy done ... go ahead , launch cluster ... if wish fancy using service account (not necessary) setup issue
gcloud auth activate-service-account # optional
Comments
Post a Comment