Difference between revisions of "Google Cloud Service account"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by one other user not shown)
Line 9: Line 9:
 
Create login keys for service account:
 
Create login keys for service account:
 
* <code>[[gcloud iam service-accounts keys create]]</code>
 
* <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:
 
Login into a service account using generated keys:
 
* <code>[[gcloud auth activate-service-account]] --key-file=[[your_key_file_name.json]]</code>
 
* <code>[[gcloud auth activate-service-account]] --key-file=[[your_key_file_name.json]]</code>
  
 
[[your_key_file_name.json]]
 
  "type": "[[service_account]]"
 
  
 
== Commands ==
 
== Commands ==
* <code>[[gcloud iam]]</code>
 
 
* <code>[[gcloud iam service-accounts --help]]</code>
 
* <code>[[gcloud iam service-accounts --help]]</code>
 
* <code>[[gcloud iam service-accounts]]</code>
 
* <code>[[gcloud iam service-accounts]]</code>
Line 41: Line 38:
 
* {{gcloud iam service-accounts}}
 
* {{gcloud iam service-accounts}}
 
* {{gcloud config}}
 
* {{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: