terraform-contour-mirror/modules/yc-database/outputs.tf
kochetkov.s be34bc617b refactor: Use unified infrastructure.yaml config file
- Add infrastructure.yaml as single source of truth (like values.yaml in Helm)
- Make all modules universal (no hardcoded entity names)
- Use existing PostgreSQL cluster instead of creating new one
- Add yc-database module for working with existing PostgreSQL
- Add k8s-secret module with lifecycle.ignore_changes support
- Update terragrunt.hcl files to read from infrastructure.yaml
- Remove scripts, use native Terragrunt functions (yamldecode)
2026-01-19 15:28:39 +03:00

36 lines
894 B
HCL

output "cluster_id" {
description = "ID кластера PostgreSQL"
value = var.cluster_id
}
output "cluster_fqdn" {
description = "FQDN кластера PostgreSQL"
value = data.yandex_mdb_postgresql_cluster.existing.host[0].fqdn
}
output "host" {
description = "Host адрес кластера"
value = data.yandex_mdb_postgresql_cluster.existing.host[0].fqdn
}
output "port" {
description = "Порт кластера"
value = 6432
}
output "database_name" {
description = "Имя базы данных"
value = yandex_mdb_postgresql_database.this.name
}
output "user_name" {
description = "Имя пользователя"
value = yandex_mdb_postgresql_user.this.name
}
output "password" {
description = "Пароль пользователя"
value = random_password.user_password.result
sensitive = true
}