add support for data cache to cloud sql module (#2209)

This commit is contained in:
Ludovico Magnocavallo
2024-04-10 08:24:00 +02:00
committed by GitHub
parent 1b44af595c
commit e08ff19cd9
3 changed files with 39 additions and 24 deletions

View File

@@ -114,6 +114,13 @@ resource "google_sql_database_instance" "primary" {
}
}
dynamic "data_cache_config" {
for_each = var.edition == "ENTERPRISE_PLUS" ? [1] : []
content {
data_cache_enabled = var.data_cache
}
}
dynamic "database_flags" {
for_each = var.flags != null ? var.flags : {}
iterator = flag