Skip to content

Commit 75bd749

Browse files
authoredApr 9, 2024··
docs: fix readme documentation for workload custom suppliers. (#1382)
* docs: fix readme documentation for workload custom suppliers. * fix typo
1 parent 17b8eb3 commit 75bd749

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed
 

‎README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -519,12 +519,14 @@ IdentityPoolCredentials identityPoolCredentials =
519519
.build();
520520
```
521521
Where the [audience](https://cloud.google.com/iam/docs/best-practices-for-using-workload-identity-federation#provider-audience) is:
522-
```//iam.googleapis.com/locations/global/workforcePools/$WORKLOAD_POOL_ID/providers/$PROVIDER_ID```
522+
```//iam.googleapis.com/projects/$PROJECT_NUMBER/locations/global/workloadIdentityPools/$WORKLOAD_POOL_ID/providers/$PROVIDER_ID```
523523

524524
Where the following variables need to be substituted:
525-
- `$WORKLOAD_POOL_ID`: The workload pool ID.
525+
- `$PROJECT_NUMBER`: The Google Cloud project number.
526+
- `$WORKLOAD_POOL_ID`: The workload identity pool ID.
526527
- `$PROVIDER_ID`: The provider ID.
527528

529+
528530
The values for audience, service account impersonation URL, and any other builder field can also be found by
529531
generating a [credential configuration file with the gcloud CLI](https://cloud.google.com/sdk/gcloud/reference/iam/workload-identity-pools/create-cred-config).
530532

@@ -586,10 +588,11 @@ AwsCredentials credentials = AwsCredentials.newBuilder()
586588
```
587589

588590
Where the [audience](https://cloud.google.com/iam/docs/best-practices-for-using-workload-identity-federation#provider-audience) is:
589-
```//iam.googleapis.com/locations/global/workforcePools/$WORKLOAD_POOL_ID/providers/$PROVIDER_ID```
591+
```//iam.googleapis.com/projects/$PROJECT_NUMBER/locations/global/workloadIdentityPools/$WORKLOAD_POOL_ID/providers/$PROVIDER_ID```
590592

591593
Where the following variables need to be substituted:
592-
- `$WORKLOAD_POOL_ID`: The workload pool ID.
594+
- `$PROJECT_NUMBER`: The Google Cloud project number.
595+
- `$WORKLOAD_POOL_ID`: The workload identity pool ID.
593596
- `$PROVIDER_ID`: The provider ID.
594597

595598
The values for audience, service account impersonation URL, and any other builder field can also be found by

0 commit comments

Comments
 (0)
Please sign in to comment.