diff --git a/CRUD/postgres.tf b/CRUD/postgres.tf index 60dddb0..ca8d85d 100644 --- a/CRUD/postgres.tf +++ b/CRUD/postgres.tf @@ -13,10 +13,10 @@ resource "nubes_postgres" "main_pg" { } access_configuration = { - master_ip_space = "no-needed" - master_access_list = jsonencode(["10.0.0.0/8"]) - slave_ip_space = "no-needed" - slave_access_list = jsonencode([]) + master_ip_space = "no-needed" + master_access_list = jsonencode(["10.0.0.0/8"]) + slave_ip_space = "no-needed" + slave_access_list = jsonencode([]) } postgres_configuration = { @@ -26,10 +26,10 @@ resource "nubes_postgres" "main_pg" { pooler_slave = false } - postgres_conf = jsonencode([{ - param_name = "log_connections" - param_value = "" - }]) + # Доп. настройки postgresql.conf (map-fixed): log_connections / log_disconnections, off | on + postgres_conf = { + log_connections = "off" + } backup_configuration = { s3_uid = var.s3_name