-
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
google_pubsub_subscription with bigquery_config created with wrong 'Delivery type' #12318
google_pubsub_subscription with bigquery_config created with wrong 'Delivery type' #12318
Comments
@etalaevsky can you share your config and the debug log so I can take a close look? |
@edwardmedia the config is exactly as in official provider documentation. Please refer to the link in the bug. Moreover, if I change the delivery type manually from 'Pull' to 'BigQuery (Push)' via the gcp console and re-run terraform plan, the plan does not show any significant changes apart from IDs changes. I believe it has to be easy to reproduce. |
I believe the issue to be the project delimiter in bigquery_config.table. I was able to manually create one; import into Terraform and examine the state between the two resources. The docs show the following for the BigQuery config block: bigquery_config {
table = "${google_bigquery_table.test.project}.${google_bigquery_table.test.dataset_id}.${google_bigquery_table.test.table_id}"
} but should be: bigquery_config {
table = "${google_bigquery_table.test.project}:${google_bigquery_table.test.dataset_id}.${google_bigquery_table.test.table_id}"
} |
@richmcw there is a chance you're right about ':'
|
@etalaevsky The linked PR addresses that too. When I examine the state of the resource created via copy/paste from documentation: bigquery_config {
drop_unknown_fields = false
table = "rmcw0-e378ed1c.example_dataset.example_table"
use_topic_schema = false
write_metadata = false
} vs when I examine the state of a manually created resource after importing to Terraform: bigquery_config {
table = "rmcw0-e378ed1c:example_dataset.example_table"
use_topic_schema = false
write_metadata = false
} Notice the ':' between project and dataset and not a '.' |
@richmcw noticed. Replacing it with ':' does the trick.
From the other side, Python and Java uses "." in example |
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
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
terraform -v
Terraform v1.2.7
on darwin_arm64
Affected Resource(s)
google provider version 4.32.0
google_pubsub_subscription
Terraform Configuration Files
Configuration is taken from official docs
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/pubsub_subscription#example-usage---pubsub-subscription-push-bq
Expected Behavior
Create new subscription with Delivery type Write to BigQuery (Push)
Actual Behavior
Create new subscription with Delivery type Pull
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: