Open tanjt107 opened 1 year ago
Ill take a look as ive added support for hub and data exchange
Actually having a deeper look. not sure this fits terraform, there is no real CRUD here. only: https://cloud.google.com/bigquery/docs/reference/analytics-hub/rest/v1beta1/projects.locations.dataExchanges.listings/subscribe
There is no unsubscribe or get/list so there isnt a way to manage a state
Hello @DrFaust92, it seems to have been added during august. is it what you were looking for? https://cloud.google.com/bigquery/docs/reference/analytics-hub/rest/v1/projects.locations.subscriptions
Yes, that might work. I'm going on vacation so I won't be looking at this for at least a few weeks. I will add though that I hope it will work as it will need to call different endpoints and not the same func as other resources (I'm assuming it will just not might be trivial)
@DrFaust92 - given the new methods on the API can this be done ?
Hi there,
I'm part of the BigQuery team directly, and I have a draft PR open for this here as well. I expect to be done in the next few days and send the PR in for full review after that.
Let me know if you'd like to merge efforts here, or if you want to continue on your own PR @sachinpro
Thanks!
Community Note
Description
I would like to request the addition of the
google_bigquery_analytics_hub_subscription
resource to the Terraform provider for Google Cloud Platform. This resource would allow users to create and manage subscriptions to data exchanges and listings in Analytics Hub.Currently, the only way to create a subscription to a data exchange or listing in Terraform is to use console or API. However, this is a workaround, and it is not ideal. The
google_bigquery_analytics_hub_subscription
would have all of the features that are needed for creating and managing subscriptions, and it would be consistent with the other resources in the Terraform provider for Google Cloud Platform.New or Affected Resource(s)
Potential Terraform Configuration
References
b/291746281