refactor: LUCEE/ → CRUD/, npg_lucee → main_pg, add flask.tf

This commit is contained in:
“Naeel”
2026-07-20 11:05:39 +04:00
parent 757aa2de98
commit 4c5a61cbbf
7 changed files with 66 additions and 9 deletions
+16
View File
@@ -0,0 +1,16 @@
# =============================================================================
# PostgreSQL — пользователи и базы данных
# =============================================================================
resource "nubes_postgres_user" "crud_user_0" {
postgres_id = nubes_postgres.main_pg.id
username = local.pg_username
role = local.pg_role
adopt_existing_on_create = true
}
resource "nubes_postgres_database" "pg_db" {
postgres_id = nubes_postgres.main_pg.id
db_name = local.pg_db_name
db_owner = nubes_postgres_user.crud_user_0.username
adopt_existing_on_create = true
}