Difference between revisions of "Google Cloud Service account"
Jump to navigation
Jump to search
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> | ||
− | |||
− | |||
− | |||
== Commands == | == Commands == |
Revision as of 14:01, 24 November 2022
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
gcloud iam
gcloud iam service-accounts --help
gcloud iam service-accounts
gcloud iam service-accounts list
gcloud iam service-accounts describe
gcloud iam service-accounts create
gcloud iam service-accounts keys create
Related
- Google Cloud IAM
- Google Cloud user account
gcloud auth list
gsutil config -e
for service account credentials.gcloud auth activate-service-account
- Service accounts are considered as users for
gsutil acl
purposes. - Kubernetes service account
GOOGLE_APPLICATION_CREDENTIALS
gsutil acl ch
type: kubernetes.io/service-account-token
See also
Advertising: