We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21d3771 commit 6b928f6Copy full SHA for 6b928f6
modules/postgresql/read_replica.tf
@@ -54,6 +54,16 @@ resource "google_sql_database_instance" "replicas" {
54
}
55
56
57
+ dynamic "insights_config" {
58
+ for_each = var.insights_config != null ? [var.insights_config] : []
59
+
60
+ content {
61
+ query_insights_enabled = true
62
+ query_string_length = lookup(insights_config.value, "query_string_length", 1024)
63
+ record_application_tags = lookup(insights_config.value, "record_application_tags", false)
64
+ record_client_address = lookup(insights_config.value, "record_client_address", false)
65
+ }
66
67
68
disk_autoresize = lookup(each.value, "disk_autoresize", var.disk_autoresize)
69
disk_size = lookup(each.value, "disk_size", var.disk_size)
0 commit comments