gcloud iam workload-identity-pools create (WORKLOAD_IDENTITY_POOL : --location=LOCATION) [--description=DESCRIPTION] [--disabled] [--display-name=DISPLAY_NAME] [--inline-trust-config-file=INLINE_TRUST_CONFIG_FILE] [--mode=MODE] [--inline-certificate-issuance-config-file=INLINE_CERTIFICATE_ISSUANCE_CONFIG_FILE | --[no-]use-default-shared-ca] [GCLOUD_WIDE_FLAG …]
my-workload-identity-pool. Explicit values
for all required and optional parameters are provided.
gcloud iam workload-identity-pools create my-workload-identity-pool --location="global" --display-name="My workload pool" --description="My workload pool description" --disabled
To set the project attribute:
workload_identity_pool on the command line
with a fully specified name;
--project on the command line;
core/project.
WORKLOAD_IDENTITY_POOL
To set the workload_identity_pool attribute:
workload_identity_pool on the command line.
--location=LOCATIONlocation attribute:
workload_identity_pool on the command line
with a fully specified name;
--location on the command line.
--description=DESCRIPTION--disabled--display-name=DISPLAY_NAME--inline-trust-config-file=INLINE_TRUST_CONFIG_FILEinlineTrustConfig: additionalTrustBundles: example.com: trustAnchors: - pemCertificate: "-----BEGIN CERTIFICATE----- <certificate> -----END CERTIFICATE-----" - pemCertificate: "-----BEGIN CERTIFICATE----- <certificate> -----END CERTIFICATE-----" myorg.com: trustAnchors: - pemCertificate: "-----BEGIN CERTIFICATE----- <certificate> -----END CERTIFICATE-----" - pemCertificate: "-----BEGIN CERTIFICATE----- <certificate> -----END CERTIFICATE-----"
--mode=MODEMODE must be one of:
federation-only, mode-unspecified,
system-trust-domain, trust-domain.
--inline-certificate-issuance-config-file=INLINE_CERTIFICATE_ISSUANCE_CONFIG_FILEinlineCertificateIssuanceConfig: caPools: us-east1: projects/1234/locations/us-east1/caPools/capoolname us-west1: projects/1234/locations/us-west1/caPools/capoolname keyAlgorithm: ECDSA_P256 lifetime: 86400s rotationWindowPercentage: 50
--use-default-shared-ca to
enable and --no-use-default-shared-ca to disable.
--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
iam/v1 API. The full documentation for this
API can be found at: https://cloud.google.com/iam/
gcloud alpha iam workload-identity-pools creategcloud beta iam workload-identity-pools create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.