Difference between revisions of "Gcloud auth activate-service-account"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
[[gcloud auth]] activate-service-account --key-file=[[your_key_file_name.json]] | [[gcloud auth]] activate-service-account --key-file=[[your_key_file_name.json]] | ||
Activated service [[account credentials]] for: [your_username@your-project.[[iam.gserviceaccount.com]]] | Activated service [[account credentials]] for: [your_username@your-project.[[iam.gserviceaccount.com]]] | ||
+ | |||
+ | |||
+ | echo "$MYGOOGLE_SA_KEY" | [[base64 --decode]] > mykey.json && gcloud auth activate-service-account --key-file mykey.json | ||
== Related == | == Related == |
Revision as of 06:44, 10 August 2022
gcloud auth activate-service-account
gcloud auth activate-service-account --key-file=your_key_file_name.json Activated service account credentials for: [your_username@your-project.iam.gserviceaccount.com]
echo "$MYGOOGLE_SA_KEY" | base64 --decode > mykey.json && gcloud auth activate-service-account --key-file mykey.json
Related
gcloud iam service-accounts keys create
gcloud auth login
gsutil ls
gcloud projects list
gsutil config -e
- Service accounts
See also
- Service accounts:
gcloud iam service-accounts [ create | get-iam-policy | list | delete | describe | keys ], gcloud auth activate-service-account
gcloud auth
[list | login | print-access-token | configure-docker | activate-service-account | application-default login] | print-access-token | print-identity-token | --help]
Advertising: