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