Closed pingyeh closed 1 year ago
@pingyeh I am not able to repro this issue in both conditions (with and without friendly_name in the config). No permadiff is found. Reviewed the log you provided, I do see friendly_name in the api response. I don't see the request call in your log that created the dataset. Wonder if you created the dataset with the friendly_name and updated the config afterward?
Please detail the repro steps if that is not the case
The dataset was created before I started using terraform, so the config was imported.
I added a friendly_name among other attributes to the config after the import, ran terraform apply
successfully, then I wanted to remove the friendly_name because I realized that it is not visible on the Google Cloud Console in the new UI now. Terraform apply shows the diff correctly:
- friendly_name = "Aquarium work" -> null
But terraform apply
was a NOP. The diff is still there.
@pingyeh I understand now what the problem is. Basically you are not able to remove it. Yes, this is a bug in the provider.
@edwardmedia Thanks for recognizing the bug!
What's the plan?
@edwardmedia I just set my google provider to version = ">= 4.57.0"
released today, but the permadiff still exists. Will the fix be available in the next release?
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.
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
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/pingyeh/d61c215819646527a241eaf1153f74e1
Panic Output
Expected Behavior
The BigQuery dataset has a non-empty
friendly_name
. It should be set tonull
as indicated byterraform apply
.Actual Behavior
Terraform tries to remove the
friendly_name
attribute:The
friendly_name
has not changed afterterraform apply
. Reapplying again produces the same diff over and over.Steps to Reproduce
terraform apply
Important Factoids
References
0000