Skip to content

iam service-accounts create does not return keys #1983

Closed

Description

@kwoodson

I would like to automate the creation of service-accounts which would return us a json or p12 file so that I can use the credentials in scripts.

https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts.keys

If I am doing this incorrectly or this is already available through gcloud iam please let me know.

Activity

  1. kwoodson commented on Jul 13, 2016

    @kwoodson
    Author

    Sorry for the bother, found it.

    https://cloud.google.com/iam/docs/managing-service-account-keys

    gcloud iam service-accounts keys create
    ~/key.json
    --iam-account my-sa-123@my-project-123.iam.gserviceaccount.com

  2. dhermes commented on Jul 18, 2016

    @dhermes
    Contributor

    @kwoodson Thanks for teaching me about gcloud iam service-accounts keys create. Pretty awesome that it exists!

  3. added a commit that references this issue on Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

authtype: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions