From 39ff03613d9d690afb254d9f3667cfa5a5701017 Mon Sep 17 00:00:00 2001 From: aeitzman Date: Tue, 9 Apr 2024 12:21:52 -0700 Subject: [PATCH] docs: fix readme documentation for workload custom suppliers. --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2ec6b739d..0bd359636 100644 --- a/README.md +++ b/README.md @@ -519,12 +519,14 @@ IdentityPoolCredentials identityPoolCredentials = .build(); ``` Where the [audience](https://cloud.google.com/iam/docs/best-practices-for-using-workload-identity-federation#provider-audience) is: -```//iam.googleapis.com/locations/global/workforcePools/$WORKLOAD_POOL_ID/providers/$PROVIDER_ID``` +```///iam.googleapis.com/projects/$PROJECT_NUMBER/locations/global/workloadIdentityPools/$WORKLOAD_POOL_ID/providers/$PROVIDER_ID``` Where the following variables need to be substituted: -- `$WORKLOAD_POOL_ID`: The workload pool ID. +- `$PROJECT_NUMBER`: The Google Cloud project number. +- `$WORKLOAD_POOL_ID`: The workload identity pool ID. - `$PROVIDER_ID`: The provider ID. + The values for audience, service account impersonation URL, and any other builder field can also be found by generating a [credential configuration file with the gcloud CLI](https://cloud.google.com/sdk/gcloud/reference/iam/workload-identity-pools/create-cred-config). @@ -586,10 +588,11 @@ AwsCredentials credentials = AwsCredentials.newBuilder() ``` Where the [audience](https://cloud.google.com/iam/docs/best-practices-for-using-workload-identity-federation#provider-audience) is: -```//iam.googleapis.com/locations/global/workforcePools/$WORKLOAD_POOL_ID/providers/$PROVIDER_ID``` +```///iam.googleapis.com/projects/$PROJECT_NUMBER/locations/global/workloadIdentityPools/$WORKLOAD_POOL_ID/providers/$PROVIDER_ID``` Where the following variables need to be substituted: -- `$WORKLOAD_POOL_ID`: The workload pool ID. +- `$PROJECT_NUMBER`: The Google Cloud project number. +- `$WORKLOAD_POOL_ID`: The workload identity pool ID. - `$PROVIDER_ID`: The provider ID. The values for audience, service account impersonation URL, and any other builder field can also be found by