-
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
Need a way to migrate to google_bigquery_dataset_access #7486
Comments
Hey @rvandegrift you can try the bigquery dataset IAM policy which wraps the dataset access resource as a workaround. It should be able to support your use case https://www.terraform.io/docs/providers/google/r/bigquery_dataset_iam.html |
I left this out of my example to keep it simple, but I need authorized view support. |
This bug is blocking my team from using |
We're also trying to migrate from |
The easiest way I found was to:
|
If you're having this issue with dataset VIEWS:
|
…rp#7486) Signed-off-by: Modular Magician <[email protected]>
…14078) Signed-off-by: Modular Magician <[email protected]>
Currently I did not find any argument in the |
Note: it seems like import would help quite a bit to solve this (#7659), but assuming import is possible by coming up with a suitable identifier, I think this use-case would also benefit from being considered for acquire-on-create behavior (ie. when adding a new |
This sounds promising. Would it be in a |
Yea, we do it with |
Community Note
Description
I have some bigquery datasets that use old-style
access
blocks in the dataset. I'd like to switch to the newergoogle_bigquery_dataset_access
, but the provider doesn't correctly handle this. When thegoogle_bigquery_dataset_access
resource is created, it conflicts with the existing IAM policy elements, resulting in errors like:New or Affected Resource(s)
Potential Terraform Configuration
Initial config:
Desired config:
Ideally, terraform would be to detect that the exact policy element already exists, and just consider it successful. If that wouldn't work, it'd still be better than nothing to have
terraform import
support.References
b/359365569
The text was updated successfully, but these errors were encountered: