Difference between revisions of "Gcloud iam service-accounts keys create"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
== Examples == | == Examples == | ||
− | [[gcloud iam service-accounts keys]] create --iam-account=SERVICE_ACCOUNT_NAME@PROJECT_ID.iam.gserviceaccount.com OUTPUT_FILE_NAME_WITH_CREDENTIALS[[.json]] | + | [[gcloud iam service-accounts keys]] create --iam-account=SERVICE_ACCOUNT_NAME@PROJECT_ID.[[iam.gserviceaccount.com]] OUTPUT_FILE_NAME_WITH_CREDENTIALS[[.json]] |
+ | created key [XXXXXXXX] of type [json] as [OUTPUT_FILE_NAME_WITH_CREDENTIALS.json] for SERVICE_ACCOUNT_NAME@PROJECT_ID.iam.gserviceaccount.com | ||
+ | |||
created key [1974eb1f2d4a3569xadfaadsf] of type [json] as [your-user.json] for [your-user@your-project.[[iam.gserviceaccount.com]]] | created key [1974eb1f2d4a3569xadfaadsf] of type [json] as [your-user.json] for [your-user@your-project.[[iam.gserviceaccount.com]]] |
Latest revision as of 14:14, 24 November 2022
gcloud iam service-accounts keys create OUTPUT-FILE --iam-account [email protected].gserviceacccount.com
- Role:
roles/iam.serviceAccountKeyAdmin
required
Examples[edit]
gcloud iam service-accounts keys create --iam-account=SERVICE_ACCOUNT_NAME@PROJECT_ID.iam.gserviceaccount.com OUTPUT_FILE_NAME_WITH_CREDENTIALS.json created key [XXXXXXXX] of type [json] as [OUTPUT_FILE_NAME_WITH_CREDENTIALS.json] for SERVICE_ACCOUNT_NAME@PROJECT_ID.iam.gserviceaccount.com
created key [1974eb1f2d4a3569xadfaadsf] of type [json] as [your-user.json] for [your-user@your-project.iam.gserviceaccount.com]
gcloud iam service-accounts keys create FILE_NAME.json --iam-account=SERVICE_ACCOUNT_NAME@PROJECT_ID.iam.gserviceaccount.com outputfile.json
gcloud iam service-accounts keys create service-account-file.json
Related[edit]
gcloud iam service-accounts create
gcloud auth activate-service-account
aws iam create-access-key
export GOOGLE_APPLICATION_CREDENTIALS="/home/user/Downloads/service-account-file.json"
- GitLab CI: variables:
ssh-keygen
your_key_file_name.json
cloud iam service-accounts keys list
See also[edit]
Advertising: