-
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_table import is failing without any meaningful error #10471
google_bigquery_table import is failing without any meaningful error #10471
Comments
@g-nikolay what config and command did you use?
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/bigquery_table#import |
@edwardmedia basically I did 2 tests - 1 manually created resources, 2 using dm config below: resources:
- type: gcp-types/bigquery-v2:datasets
name: dataset-gcp-res-import-test
properties:
labels:
from: my-test
defaultTableExpirationMs: 7200000
location: us-west1
description: 'my test'
datasetReference:
datasetId: dataset_gcp_import_test
- type: gcp-types/bigquery-v2:tables
name: table-gcp-res-import-test
properties:
datasetId: $(ref.dataset-gcp-res-import-test.datasetReference.datasetId)
tableReference:
tableId: table_gcp_import_test |
@g-nikolay have you tried |
@edwardmedia sure, this is import commands
TF config is attached to ticket, DM config is attached to the comment above |
@g-nikolay can you try below config for your import? resource "google_bigquery_dataset" "dataset_gcp_res_import_test" {
}
resource "google_bigquery_table" "table_gcp_res_import_test" {
} |
@edwardmedia getting this output
|
@g-nikolay what commands were you using? Did you apply or import?
Here is the Import Usage doc which says
|
@edwardmedia import then plan as it's described in repro steps |
@g-nikolay import brings the attributes to the state. It does not auto fill the config. I guess you need to manually add them into config before you run |
@edwardmedia sorry, I'm a little bit confused. I have created ticket with the config which I used for import and plan, then you asked me test again with empty config. Is there anything wrong with the config from the bug description? |
@g-nikolay the config in this block is used to Did you modify the config between Is this helpful? If I misunderstood your questions, please advise. |
@edwardmedia please create bq dataset and table either using DM config above or manually, then try import and plan using terraform config from the ticket description. |
@g-nikolay what do you mean
|
I think the confusion here is that the import command does succeed, but the next time Regardless of where exactly the error is happening (import or plan) this is definitely a bug in the provider and should be fixed |
I see where the problem is. Thanks @slevenick |
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
Terraform v1.0.9
on linux_amd64
provider registry.terraform.io/hashicorp/google v3.90.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
gist
Panic Output
Expected Behavior
Actual Behavior
terraform is failing with the following message
Steps to Reproduce
terraform import
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: