This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This assumes you created a file with | |
// gcloud iam workload-identity-pools create-cred-config \ | |
// projects/INSERT_PROJECT_NUMBER/locations/global/workloadIdentityPools/INSERT_POOL_ID/providers/INSERT_PROVIDER_ID \ | |
// --service-account=myserviceaccount@email.com \ | |
// --aws \ | |
// --output-file=testcreds.json | |
// Then you have gone through the rest of the federated auth setup eg. | |
// Pool / provider / sa / principalset / etc | |
// Note this is calling get() for cloud run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This assumes you created a file with | |
// gcloud iam workload-identity-pools create-cred-config \ | |
// projects/INSERT_PROJECT_NUMBER/locations/global/workloadIdentityPools/INSERT_POOL_ID/providers/INSERT_PROVIDER_ID \ | |
// --service-account=myserviceaccount@email.com \ | |
// --aws \ | |
// --output-file=testcreds.json | |
// Then you have passed GOOGLE_APPLICATION_CREDENTIALS=testcreds.json | |
// And you have gone through the rest of the federated auth setup eg. | |
// Pool / provider / sa / principalset / etc |