-
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_bigquery_table
: external_data_configuration.connection_id
is detected as having changed when it's not
#12386
google_bigquery_table
: external_data_configuration.connection_id
is detected as having changed when it's not
#12386
Comments
@flovouin it appears fine to me when I assign the connection_id with below value. No permdiff is found in the subsequent
|
Hi @edwardmedia, thanks for your reply. My point is that the documentation shows an example of how to reference a connection managed by Terraform: However when using the output of a The result is that the output of I haven't found an easy way to get the expected format ( connection_id = "${google_bigquery_connection.connection.project}.${lower(google_bigquery_connection.connection.location)}.${google_bigquery_connection.connection.connection_id}" |
@flovouin you are right, I have not found a direct |
Thanks for confirming the issue @edwardmedia. I guess the easiest solution would be to at least update the documentation, because the current example will result in this issue. |
Same issue here. I like the idea of " |
@melinath what do you think about this issue? |
Wasn't able to get to this |
it seems like we should probably suppress the diff in this case, since using a standard TF reference works (apart from the fact that the API returns it in a different format.) And we probably would rather let folks use the standard TF reference. |
b/245412495 |
Here's a minimal example we can run. I can use the I mailed a PR to fix the ID issue GoogleCloudPlatform/magic-modules#9053 |
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
1.2.7
Affected Resource(s)
google_bigquery_table
Terraform Configuration Files
Expected Behavior
After the initial creation, no change should be detected in the
google_bigquery_table.table
resource in subsequent plans.Actual Behavior
The following change is detected:
Note that the connection ID returned by BigQuery has a specific format,
project.location.connection
, which is not the usual "path" format for resources. This is what is causing the incorrect change detection.Steps to Reproduce
terraform apply
: the table is created.terraform plan
: a change is detected even though the resource has not been modified.References
[1] https://cloud.google.com/bigquery/docs/biglake-quickstart#create-table-storage
b/300616598
The text was updated successfully, but these errors were encountered: