You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 a user, that user is claiming responsibility for the issue.
Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
It looks like data_cache_config defaults to whatever is returned from the API if it's not provided (which does seem to include data_cache_enabled = true based on our nightly tests.) However, data_cache_enabled itself defaults to false.
I double-checked, and if you set data_cache_config {} (an empty block, which will prevent defaulting to the API's default config) data_cache_enabledwill correctly default to false.
This is definitely confusing for users. I'm not entirely clear on what the full API behavior is, so I'm not sure what the best way to fix it on the client side would be.
Community Note
Terraform Version & Provider Version(s)
Terraform v1.10.5
on darwin_arm64
Affected Resource(s)
google_sql_database_instance
Terraform Configuration
Debug Output
No response
Expected Behavior
CloudSQL data_cache should have defaulted to false as per the documentation in the terraform docs
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance#data_cache_enabled-1
and also per google documentation it is a optional feature
https://cloud.google.com/sql/docs/mysql/data-cache
when we create CloudSQL with ENTERPISE_PLUS edition if we wanted the data_cache_config to be false we don't need to fill in the argument
Actual Behavior
when we create the CloudSQL with ENTERPISE_PLUS edition the data_cache_config will default to true
Steps to reproduce
terraform apply
Important Factoids
No response
References
After opening a ticket with google it seems the documentation is not yet updated and this behavior was due to this PR
#20393
b/413001944
The text was updated successfully, but these errors were encountered: