From a63e136f2e65993e8f0ea4a6f98fb30a2a51caed Mon Sep 17 00:00:00 2001 From: Repinoid Date: Sat, 3 Oct 2026 09:28:47 +0300 Subject: [PATCH] =?UTF-8?q?CRUD:=20postgres=5Fconf=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B2=D0=B5=D0=B4=D1=91=D0=BD=20=D0=BD=D0=B0=20=D1=81?= =?UTF-8?q?=D0=B8=D0=BD=D1=82=D0=B0=D0=BA=D1=81=D0=B8=D1=81=20map-fixed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Было (array-map-fixed): jsonencode([{ param_name = "log_connections", param_value = "" }]). Стало (map-fixed): postgres_conf = { log_connections = "off" } — формат, который принимают выпущенные провайдеры (nubes 1.1.0 / nubes-dev 2.1.0 / nubes-test 3.1.0). Заодно выровнены пробелы в access_configuration (только форматирование, значения не менялись). --- CRUD/postgres.tf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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