CRUD: postgres_conf переведён на синтаксис map-fixed

Было (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 (только форматирование, значения не менялись).
This commit is contained in:
Repinoid
2026-10-03 09:28:47 +03:00
parent 15397298de
commit a63e136f2e
+8 -8
View File
@@ -13,10 +13,10 @@ resource "nubes_postgres" "main_pg" {
} }
access_configuration = { access_configuration = {
master_ip_space = "no-needed" master_ip_space = "no-needed"
master_access_list = jsonencode(["10.0.0.0/8"]) master_access_list = jsonencode(["10.0.0.0/8"])
slave_ip_space = "no-needed" slave_ip_space = "no-needed"
slave_access_list = jsonencode([]) slave_access_list = jsonencode([])
} }
postgres_configuration = { postgres_configuration = {
@@ -26,10 +26,10 @@ resource "nubes_postgres" "main_pg" {
pooler_slave = false pooler_slave = false
} }
postgres_conf = jsonencode([{ # Доп. настройки postgresql.conf (map-fixed): log_connections / log_disconnections, off | on
param_name = "log_connections" postgres_conf = {
param_value = "" log_connections = "off"
}]) }
backup_configuration = { backup_configuration = {
s3_uid = var.s3_name s3_uid = var.s3_name