Skip to content

Instantly share code, notes, and snippets.

@salrashid123
Created December 6, 2021 13:20
Show Gist options
  • Save salrashid123/4f319cd6f687e9f4045ce3a982227f02 to your computer and use it in GitHub Desktop.
Save salrashid123/4f319cd6f687e9f4045ce3a982227f02 to your computer and use it in GitHub Desktop.
k8s_wif_3.txt
gcloud beta iam workload-identity-pools create-cred-config \
projects/$PROJECT_NUMBER/locations/global/workloadIdentityPools/pool-k8s/providers/oidc-provider-k8s-1 \
--service-account=oidc-federated@$PROJECT_ID.iam.gserviceaccount.com \
--output-file=sts-creds.json \
--credential-source-file=/var/run/secrets/iot-token/iot-token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment