Skip to content
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

Add google_bigquery_analytics_hub_subscription resource #15144

Open
tanjt107 opened this issue Jul 12, 2023 · 6 comments · May be fixed by GoogleCloudPlatform/magic-modules#12820
Open

Add google_bigquery_analytics_hub_subscription resource #15144

tanjt107 opened this issue Jul 12, 2023 · 6 comments · May be fixed by GoogleCloudPlatform/magic-modules#12820

Comments

@tanjt107
Copy link

tanjt107 commented Jul 12, 2023

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.

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)

  • google_bigquery_analytics_hub_subscription

Potential Terraform Configuration

resource "google_bigquery_analytics_hub_subscription" "default" {
  project-id = "my-project-id"
  location = "my-location"
  dataexchange0id = "my-dataexchange-id"
  listing-id = "my-listing-id"
}

References

b/291746281

@DrFaust92
Copy link
Contributor

Ill take a look as ive added support for hub and data exchange

@DrFaust92
Copy link
Contributor

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

@louisRDSC
Copy link

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

@DrFaust92
Copy link
Contributor

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)

@terekete
Copy link

@DrFaust92 - given the new methods on the API can this be done ?

sachinpro added a commit to sachinpro/magic-modules that referenced this issue Oct 26, 2023
sachinpro added a commit to sachinpro/magic-modules that referenced this issue Oct 26, 2023
sachinpro added a commit to sachinpro/magic-modules that referenced this issue Oct 26, 2023
@Cidan
Copy link
Contributor

Cidan commented Dec 6, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment