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_kafka_cluster
          • mdb_kafka_connector
          • mdb_kafka_topic
          • mdb_kafka_user

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Managed Service for Apache Kafka®
  4. Data Sources
  5. mdb_kafka_topic

yandex_mdb_kafka_topic (DataSource)

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

Get information about a topic of the Yandex Managed Kafka cluster. For more information, see the official documentation.

Example usageExample usage

//
// Get information about existing MDB Kafka Topic.
//
data "yandex_mdb_kafka_topic" "foo" {
  cluster_id = "some_cluster_id"
  name       = "test"
}

output "replication_factor" {
  value = data.yandex_mdb_kafka_topic.foo.replication_factor
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • cluster_id (Required)(String). The ID of the Kafka cluster.
  • id (String).
  • name (Required)(String). The resource name.
  • partitions (Read-Only) (Number). The number of the topic's partitions.
  • replication_factor (Read-Only) (Number). Amount of data copies (replicas) for the topic in the cluster.
  • topic_config (Read-Only) (List Of Object). User-defined settings for the topic. For more information, see the official documentation and the Kafka documentation.
    • cleanup_policy .
    • compression_type .
    • delete_retention_ms .
    • file_delete_delay_ms .
    • flush_messages .
    • flush_ms .
    • max_message_bytes .
    • message_timestamp_type .
    • min_compaction_lag_ms .
    • min_insync_replicas .
    • preallocate .
    • retention_bytes .
    • retention_ms .
    • segment_bytes .

Was the article helpful?

Previous
mdb_kafka_connector
Next
mdb_kafka_user
© 2026 Direct Cursus Technology L.L.C.