-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing example for pub sub protobuf schema definition #10259
Missing example for pub sub protobuf schema definition #10259
Comments
Hi @Talador12 ! I'm sorry you're running into this issue. Is the configuration you provided above returning the |
I did get this working with the above schema, but the project was not being inferred as it is with my other modules. Adding
did the trick for me. Either way - I would recommend providing an example of the protobuf alongside the avro example |
Ah, ok, thanks @Talador12! We can add the documentation. I'm mostly wondering how we should triage this, as you mentioned that several valid schemas are hitting that error. If I'm understanding correctly, the schemas weren't the problem, but the lack of documentation made it hard to figure out what was missing. Is that correct? |
Yes - the schema is typically in a separate |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
See here:
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/pubsub_topic#example-usage---pubsub-topic-schema-settings
The avro definition works but there is not an example for protobuf, and several valid schemas are getting
It would help if there was a working example to branch off of. For instance, here is an example for both schema types:
https://cloud.google.com/pubsub/docs/publisher#using_schema
New or Affected Resource(s)
Potential Terraform Configuration
References
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/pubsub_topic#example-usage---pubsub-topic-schema-settings
https://cloud.google.com/pubsub/docs/publisher#using_schema
The text was updated successfully, but these errors were encountered: