Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Setting up Yandex Cloud Terraform provider authentication
  • Solution library
    • Overview
    • Release notes
          • mdb_postgresql_backup_retention_policy
          • mdb_postgresql_cluster
          • mdb_postgresql_database
          • mdb_postgresql_user

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Managed Service for PostgreSQL
  4. Data Sources
  5. mdb_postgresql_database

yandex_mdb_postgresql_database (DataSource)

Written by
Yandex Cloud
Updated at September 23, 2026
View as Markdown
  • Example usage
  • Arguments & Attributes Reference

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

Example usageExample usage

//
// Get information about existing MDB PostgreSQL Database.
//
data "yandex_mdb_postgresql_database" "foo" {
  cluster_id = "some_cluster_id"
  name       = "test"
}

output "owner" {
  value = data.yandex_mdb_postgresql_database.foo.owner
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • cluster_id (Required)(String). The ID of the PostgreSQL cluster.
  • deletion_protection (Read-Only) (String). The true value means that resource is protected from accidental deletion.
  • extension (Read-Only) (Set Of Object). Set of database extensions.
    • name .
  • id (String).
  • lc_collate (Read-Only) (String). POSIX locale for string sorting order. Forbidden to change in an existing database.
  • lc_type (Read-Only) (String). POSIX locale for character classification. Forbidden to change in an existing database.
  • name (Required)(String). The name of the PostgreSQL database.
  • owner (Read-Only) (String). Name of the user assigned as the owner of the database. Changing this value transfers ownership of the database to another user.
  • template_db (Read-Only) (String). Name of the template database.

Was the article helpful?

Previous
mdb_postgresql_cluster
Next
mdb_postgresql_user
© 2026 Direct Cursus Technology L.L.C.