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

location is set to null on terraform import for bigquery transfer config #12011

Comments

@amardeep
Copy link

amardeep commented Jul 4, 2022

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 an 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 an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Terraform Version

Terraform v1.2.3
on darwin_arm64
+ provider registry.terraform.io/hashicorp/google v4.27.0

Affected Resource(s)

  • google_bigquery_data_transfer_config

where data_source_id = "google_cloud_storage"

Command

terraform import google_bigquery_data_transfer_config.<resource_name> <config_id>

Expected Behavior

In resulting state file, location should be set appropriately - for eg. "location": "US"

Actual Behavior

After import, location in state is set to null: "location": null

This causes an issue, as now terraform plan shows it would need to recreate the resource:

$ terraform plan
...
+ location                 = "US" # forces replacement
...

Same message is shown if location is set to null or "US" in tf file.

@amardeep amardeep added the bug label Jul 4, 2022
@edwardmedia edwardmedia self-assigned this Jul 4, 2022
@edwardmedia
Copy link
Contributor

The location is part of the {{name}}

@lodotek
Copy link

lodotek commented Sep 23, 2022

What's the latest status here?

Thank you.

@lodotek
Copy link

lodotek commented Oct 31, 2022

any progress?

@kieronellis
Copy link

Importing for us has location = "", rather than null.

@giulianobr
Copy link

OMG it still open! @zli82016 can you help here?

@shohei-ihaya
Copy link

Any updates?
I'm also facing this problem 😢

@github-actions github-actions bot added service/bigquery forward/review In review; remove label to forward labels Aug 17, 2023
@giulianobr
Copy link

Hey team @zli82016 @edwardmedia @trodge @obada-ab any update here?
Thanks!

@obada-ab
Copy link

Seems like an issue with the custom import code, working on a fix

@obada-ab
Copy link

b/297498365

@github-actions
Copy link

github-actions bot commented Oct 7, 2023

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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.