diff --git a/postgres/outputs.tf b/postgres/outputs.tf index 7e650ed..771bd13 100644 --- a/postgres/outputs.tf +++ b/postgres/outputs.tf @@ -39,3 +39,17 @@ 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 +} \ No newline at end of file