When I tried to activate a service account in the Google Cloud SDK, I received the following error:
ERROR:(gcloud.auth.activate-service-account)Unable to read file
./credential.json—Errno2 No such file or directory:
'./credential.json'
I don't know if the location of the Key_file is different or not, so I would appreciate it if you could tell me how to deal with it.
Below is the full text.
他社 Due to the GCS account that I spit out via another company, I cannot use the console and I am trying to set it up with gsutil
参照Refer to the documentation
https://cloud.google.com/sdk/gcloud/reference/auth/activate-service-account
C:\Local\Google\Cloud SDK>gcloud auth list
Credentialed Accounts
ACTIVE ACCOUNT
[email protected]
To set the active account, run:
$ gcloud config set account `ACCOUNT`
C:\Local\Google\Cloud SDK>gcloud config set account dp-xxxx@x xxx-service-account-2.iam.gserviceaccount.com
Updated property [core/account].
C:\Local\Google\Cloud SDK>gcloud auth list
Credentialed Accounts
ACTIVE ACCOUNT
[email protected]
To set the active account, run:
$ gcloud config set account `ACCOUNT`
C:\Local\Google\Cloud SDK>gcloud auth activate-service-account [email protected] --key-file./credential.json --project xxxx-per-client
ERROR: (gcloud.auth.activate-service-account) Enable to read file [./credential.json]: [Errno2] No such file or directory: './credential.json'
I changed the name of the json file and it was executed.
Thank you.
912 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
617 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.