terraform-modules/postgres/outputs.tf
2025-09-08 14:27:49 +02:00

55 lines
No EOL
1.2 KiB
HCL

# Postgres Instance Output
# output "postgres_instance_id" {
# value = stackit_postgresflex_instance.this.instance_id
# }
# Postgres Database Output
# output "postgres_database_id" {
# value = stackit_postgresflex_database.this.database_id
# }
# Postgres User Output
# output "postgres_host" {
# value = stackit_postgresflex_user.this.host
# }
# output "postgres_password" {
# value = stackit_postgresflex_user.this.password
# sensitive = true
# }
# output "postgres_user" {
# value = stackit_postgresflex_user.this.username
# }
# output "postgres_port" {
# value = stackit_postgresflex_user.this.port
# }
# output "postgres_db_name" {
# value = stackit_postgresflex_database.this.name
# }
# output "postgres_uri" {
# value = stackit_postgresflex_user.this.uri
# sensitive = true
# }
# output "postgres_user_id" {
# value = stackit_postgresflex_user.this.user_id
# }
output "postgres_credentials" {
value = {
for k, u in stackit_postgresflex_user.this :
k => {
host = u.host
username = u.username
password = u.password
port = u.port
db_name = stackit_postgresflex_database.this[u.owner].name
uri = u.uri
}
}
sensitive = true
}