yandex_mdb_mongodb_database (Data Source)
Written by
Updated at August 7, 2025
Get information about a Yandex Managed MongoDB database. For more information, see the official documentation.
Example usage
//
// Get information about existing MDB MongoDB Database.
//
data "yandex_mdb_mongodb_database" "my_db" {
cluster_id = "some_cluster_id"
name = "test"
}
output "owner" {
value = data.yandex_mdb_mongodb_database.my_db.name
}
Argument Reference
The following arguments are supported:
-
cluster_id- (Required) The ID of the MongoDB cluster. -
name- (Required) The name of the MongoDB cluster.