Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Solution library
    • Overview
    • Release notes
          • mdb_mongodb_cluster
          • mdb_mongodb_database
          • mdb_mongodb_user

In this article:

  • Example usage
  • Argument Reference
  1. Terraform reference
  2. Resources
  3. Managed Service for MongoDB
  4. Data Sources
  5. mdb_mongodb_database

yandex_mdb_mongodb_database (Data Source)

Written by
Yandex Cloud
Updated at August 7, 2025
  • Example usage
  • Argument Reference

Get information about a Yandex Managed MongoDB database. For more information, see the official documentation.

Example usageExample 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 ReferenceArgument Reference

The following arguments are supported:

  • cluster_id - (Required) The ID of the MongoDB cluster.

  • name - (Required) The name of the MongoDB cluster.

Was the article helpful?

Previous
mdb_mongodb_cluster
Next
mdb_mongodb_user
© 2025 Direct Cursus Technology L.L.C.