Difference between revisions of "Google Cloud Service account"

From wikieduonline
Jump to navigation Jump to search
 
(36 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
* https://cloud.google.com/iam/docs/service-accounts
 
* https://cloud.google.com/iam/docs/service-accounts
  
  "type": "[[service_account]]"
+
Service accounts do not have [[passwords]], and cannot log in via browsers or cookies, you can create an account with <code>[[gcloud iam service-accounts create]]</code> and generate [[access keys]] with <code>[[gcloud iam service-accounts keys create]]</code> command.
  
[[your key file name.json]]
 
  
 +
Create service account:
 +
* <code>[[gcloud iam service-accounts create]]</code>
 +
 +
Create login keys for service account:
 +
* <code>[[gcloud iam service-accounts keys create]]</code>
 +
:See: <code>[[your_key_file_name.json]]</code>,    "type": "[[service_account]]"
 +
 +
Login into a service account using generated keys:
 +
* <code>[[gcloud auth activate-service-account]] --key-file=[[your_key_file_name.json]]</code>
 +
 +
 +
== Commands ==
 +
* <code>[[gcloud iam service-accounts --help]]</code>
 +
* <code>[[gcloud iam service-accounts]]</code>
 +
* <code>[[gcloud iam service-accounts list]]</code>
 +
* <code>[[gcloud iam service-accounts describe]]</code>
 +
* <code>[[gcloud iam service-accounts create]]</code>
 +
* <code>[[gcloud iam service-accounts keys create]]</code>
  
 
== Related ==
 
== Related ==
 
* [[Google Cloud IAM]]
 
* [[Google Cloud IAM]]
* [[user account]]
+
* [[Google Cloud user account]]
 +
* <code>[[gcloud auth list]]</code>
 +
* <code>[[gsutil config -e]]</code> for service account credentials.
 +
* <code>[[gcloud auth activate-service-account]]</code>
 +
* Service accounts are considered as users for <code>[[gsutil acl]]</code> purposes.
 +
* [[Kubernetes service account]]
 +
* <code>[[GOOGLE_APPLICATION_CREDENTIALS]]</code>
 +
* <code>[[gsutil acl ch]]</code>
 +
* <code>[[type: kubernetes.io/service-account-token]]</code>
  
 
== See also ==
 
== See also ==
* {{GCP}}
+
* {{gcloud iam service-accounts}}
 +
* {{gcloud config}}
 +
* {{sa}}
 +
 
  
 
[[Category:GCP]]
 
[[Category:GCP]]

Latest revision as of 07:52, 9 October 2023

Service accounts do not have passwords, and cannot log in via browsers or cookies, you can create an account with gcloud iam service-accounts create and generate access keys with gcloud iam service-accounts keys create command.


Create service account:

Create login keys for service account:

See: your_key_file_name.json, "type": "service_account"

Login into a service account using generated keys:


Commands[edit]

Related[edit]

See also[edit]

Advertising: