29 lines
771 B
HCL
29 lines
771 B
HCL
|
|
# MongoDB Instance
|
|
output "mongodb_instance_id" {
|
|
value = stackit_mongodbflex_instance.this.instance_id
|
|
}
|
|
|
|
# MongoDB User
|
|
output "mongodb_host" {
|
|
value = stackit_mongodbflex_user.this.host
|
|
}
|
|
|
|
output "mongodb_password" {
|
|
value = stackit_mongodbflex_user.this.password
|
|
sensitive = true
|
|
}
|
|
|
|
output "mongodb_port" {
|
|
value = stackit_mongodbflex_user.this.port
|
|
}
|
|
|
|
output "mongodb_uri" {
|
|
#value = format("mongodb://%s:%s@%s:%s/%s", stackit_mongodbflex_user.this.username, stackit_mongodbflex_user.this.password, stackit_mongodbflex_instance.mongodb_instance.host, stackit_mongodbflex_instance.mongodb_instance.port
|
|
value = stackit_mongodbflex_user.this.uri
|
|
sensitive = true
|
|
}
|
|
|
|
output "mongodb_user_id" {
|
|
value = stackit_mongodbflex_user.this.user_id
|
|
}
|