Difference between revisions of "Gcloud auth activate-service-account"

From wikieduonline
Jump to navigation Jump to search
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
<code>gcloud auth activate-service-account</code>
+
<code>[[gcloud auth]] activate-[[service-account]]</code> authorize access to Google Cloud with a [[service account]] using credentials from a file.
 
* https://cloud.google.com/sdk/gcloud/reference/auth/activate-service-account
 
* https://cloud.google.com/sdk/gcloud/reference/auth/activate-service-account
  
  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 ==
 
* <code>[[gcloud iam service-accounts keys create]]</code>
 
* <code>[[gcloud iam service-accounts keys create]]</code>
* <code>[[gcloud auth configure-docker]]</code>
+
* <code>[[gcloud iam service-accounts list]]</code>
 
* <code>[[gcloud auth login]]</code>
 
* <code>[[gcloud auth login]]</code>
 +
* <code>[[gsutil ls]]</code>
 +
* <code>[[gcloud projects list]]</code>
 +
* <code>[[gsutil config -e]]</code>
 +
* [[Service accounts]]
  
 
== See also ==
 
== See also ==
 +
* {{gcloud iam service-accounts}}
 
* {{gcloud auth}}
 
* {{gcloud auth}}
  
 
[[Category:GCP]]
 
[[Category:GCP]]

Latest revision as of 13:55, 24 November 2022

Advertising: