Closed lra closed 2 months ago
+1
@lra It seems like a provider issue. There is already a bug open for the provider. Can all of you plz upvote this issue. If you have any additional information plz add it to the provider bug.
https://github.com/hashicorp/terraform-provider-google/issues/18918
Ok, I'll follow the other issue, thanks!
TL;DR
Some of our servers without insights_config enabled started showing a drift when planning. We have no way to remove this drift.
We have no way to have a clean plan anymore because the module cannot let us set a disabled insights_config block like:
Expected behavior
Plan should be empty on google_sql_database_instance.
Observed behavior
We get the following plan:
Terraform Configuration
Terraform Version
Additional information
The weird part is that we have multiple projects, and it only happens on 50+ databases of 1 project. The same databases on different project without
insights_config
is not returning thisquery_insights_enabled = false
block. So this must be the google API returning inconsistant results.The only workaround we found so far is to enable
query_insights_enabled
on every server, even when we don't need it.