gcloud_alpha_iam_service-accounts_sign-jwt (1)
NAME
- gcloud alpha iam service-accounts sign-jwt - sign a JWT with a managed service account key
SYNOPSIS
-
gcloud alpha iam service-accounts sign-jwt INPUT-FILE OUTPUT-FILE --iam-account=IAM_ACCOUNT [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) This command signs a JWT using a system-managed service account
POSITIONAL ARGUMENTS
-
- INPUT-FILE
-
A path to the file containing the JSON JWT Claim set to be signed.
- OUTPUT-FILE
-
A path the resulting signed JWT will be written to.
REQUIRED FLAGS
-
- --iam-account=IAM_ACCOUNT
-
The service account to sign as.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
EXAMPLES:
To create a sign JWT with a system-managed service account key, run:
-
$ gcloud alpha iam service-accounts sign-jwt \
--iam-account my-account@somedomain.com input.json output.jwt
SEE ALSO:
For more information on how this command ties into the wider cloud infrastructure, please see cloud.google.com/appengine/docs/java/appidentity
NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support This variant is also available:
- $ gcloud beta iam service-accounts sign-jwt