+++ dbaas/README.md +++ dbaas/ovh/credentials.tf +++ dbaas/ovh/main.tf +++ dbaas/ovh/outputs.tf +++ dbaas/ovh/variables.tf +++ dbaas/ovh/versions.tf
35 lines
966 B
HCL
35 lines
966 B
HCL
output "database_endpoint" {
|
|
description = "Service endpoint (hostname) of the PostgreSQL instance"
|
|
value = local.database_host
|
|
}
|
|
|
|
output "database_port" {
|
|
description = "Port of the PostgreSQL instance"
|
|
value = local.database_port
|
|
}
|
|
|
|
output "database_name" {
|
|
description = "Name of the initial database"
|
|
value = ovh_cloud_project_database_database.this.name
|
|
}
|
|
|
|
output "database_username" {
|
|
description = "Database user name"
|
|
value = ovh_cloud_project_database_postgresql_user.this.name
|
|
}
|
|
|
|
output "database_cluster_id" {
|
|
description = "Id of the managed database cluster"
|
|
value = ovh_cloud_project_database.this.id
|
|
}
|
|
|
|
output "database_user_id" {
|
|
description = "Id of the database user"
|
|
value = ovh_cloud_project_database_postgresql_user.this.id
|
|
}
|
|
|
|
output "credentials_ref" {
|
|
description = "Vault path of the consumer credentials entry"
|
|
value = "secret/data/${vault_kv_secret_v2.consumer.name}"
|
|
}
|