-
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
google_bigquery_dataset_access can't be imported #7659
Comments
This needs to be retriaged. The resource doesn't support import today. |
I think this is essentially a dupe of #7486. |
I have the same issue. |
@rileykarson it looks like you had previously triaged this as documentation - is the issue that we need to document the fact that it can't be imported, as opposed to implementing import? |
Not sure, sorry! May have just clicked the wrong button. It already states it can't be imported: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/bigquery_dataset_access#import |
Hi @steven-edgar! Are you looking to import a complete existing |
We lost a comment from GoogleCloudPlatform/magic-modules#3312, but it looks like this was determined to be non-importable because there is not a unique way to identify it (it is a subfield of the dataset). We should take a second look to determine if this is still accurate, but based on the error message, it seems like we could consider an aggregate of the fields to be a pseudo-identifier, and potential support import using that. |
This is still the case. Each
I think currently if an user imports a Dataset as a whole then the |
@wj-chen I think basically there seems to be a way that the server is identifying an access object as unique:
So if it is saying the resource can't be created because it already exists, then it sort of implies we could use the same logic to allow import. It might be something like Note that I could be making some incorrect assumptions, and I don't know how this would interact with the |
Please update documentation for |
Community Note
Description
The google_bigquery_dataset_access resource does not support importing an existing configuration. If you try and apply a terraform description containing this resource, and the target dataset already has a matching permission already defined (not created by terraform), then the apply fails.
Relevant section from the terraform description
New or Affected Resource(s)
Potential Terraform Configuration
References
b/361572871
The text was updated successfully, but these errors were encountered: