GoogleCloudPlatform/cloud-foundation-fabric

data_cache_config setting missing for cloud-foundation-fabric/modules/cloudsql-instance

Closed this issue · 0 comments

Describe the bug
A clear and concise description of what the bug is.

There is a missing setting in cloud-foundation-fabric/modules/cloudsql-instance. When running a ENTERPRISE_PLUS instance you can set data_cache_config to true or false, this setting defaults to false. It seams this setting is missing in this module.

A college enabled data_cache_config to true on our ENTERPRISE_PLUS instance and we got this from terraform and when I tried to set it in the module i found that it is missing:
Terraform output gave us this:

I tried to look for it in the module but it didn't exist. When I checked the resource google_sql_database_instance in terraform registry I found the data_cache_config setting.
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance#enterprise_plus-instance-with-data_cache_config

Environment

Terraform v1.7.5

Using this tag:

ref=v29.0.0

To Reproduce
Create a cloud-sql ENTERPRISE_PLUS and instance with the module and enable data cache from the GUI.

Expected behavior
No diff.

Result

- data_cache_config {
  - data_cache_enabled = true -> null
 }