gke add policy error getting - is of an unknown type. Please set a valid type prefix for the member

Getting this error while trying to create a policy for my workload identity in GKE. I am using this command from the docs

gcloud storage buckets add-iam-policy-binding gs://BUCKET --role=roles/storage.objectViewer --member=principal://iam.googleapis.com/project-number/locations/global/workloadIdentityPools/project-id.svc.id.goog/subject/ns/test/sa/sa --condition=None

Seems like there's a missing parameter in the cli. The correct command to use is: 

gcloud storage buckets add-iam-policy-binding gs://BUCKET --role=roles/storage.objectViewer --member=principal://iam.googleapis.com/projects/project-number/locations/global/workloadIdentityPools/project-id.svc.id.goog/subject/ns/test/sa/sa --condition=None


Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20