-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Cloud Scheduler Takes Pubsub.topic_id not topic_name, make documentation clearer #5023
Cloud Scheduler Takes Pubsub.topic_id not topic_name, make documentation clearer #5023
Comments
@szheng-nyc3,
Actually its inline with what we see on the cloud console
|
so i think i might have been unclear on my example this was a while back but i think this was the issue for a pubsub topic resource named for example
and i was using the later to pass into the cloudscheduler because the param was
if |
We will add this item to documentation update list. Thank you |
I can try to emphasize that it's the full resource name, but I'm not sure what else we can say. The documentation both states the expected full-path format for topic name and uses the correct interpolation in the example:
If you have a suggestion for what additional notes we can put into the docs to reduce confusion, I'm happy to hear it. However, this ends up being a common problem, since |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Terraform Version 12.12
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
SUCCESS APPLY
Actual Behavior
Error: Error creating Job: googleapi: Error 400: Topic dev-cloudscheduler_function_ctfycloud_pam should be in the format "projects/<PROJECT_ID>/topics/<TOPIC_ID>".
Steps to Reproduce
terraform apply
Important Factoids
Cloud Scheduler parameter suggests takes a pubsub.topic_name but instead takes a pubsub_topic_id.
Documentation should be updated that
Example Usage - Scheduler Job Pubsub
for pubsub_target should take a topic_id not topic_nameReferences
https://www.terraform.io/docs/providers/google/r/cloud_scheduler_job.html#topic_name
The text was updated successfully, but these errors were encountered: