Open ksiedlarek opened 1 year ago
I would be happy to work on this, but as of now I don't see an iamSetPolicy and iamGetPolicy API call available for schema's.. https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.schemas
I'll look into this, and if it's possible via the API I'll happily implement it ๐๐ผ
Good catch! Labeled.
It seems that API is implemented, it's just not documented
curl -H "Authorization: Bearer $(gcloud auth print-access-token)" "https://pubsub.googleapis.com/v1/projects/<project>/schemas/<schema>:getIamPolicy"
this works
Awesome! Thanks for working on this @Dasio
Community Note
Description
It is not possible to assign permissions on Pub/Sub schema level via Terraform. It can only be done by web console and causes issues for people who would like to maintain whole of their infrastructure as code.
New or Affected Resource(s)
Looking on existing resources we have google_pubsub_topic_iam & google_pubsub_subscription_iam, it would be great to have new one: google_pubsub_schema_iam
Potential Terraform Configuration
References