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

In this article:

  • Example usage
  • Schema
  • Required
  • Read-Only
  • Nested Schema for connector_config_mirrormaker
  • Nested Schema for connector_config_mirrormaker.source_cluster
  • Nested Schema for connector_config_mirrormaker.source_cluster.external_cluster
  • Nested Schema for connector_config_mirrormaker.source_cluster.this_cluster
  • Nested Schema for connector_config_mirrormaker.target_cluster
  • Nested Schema for connector_config_mirrormaker.target_cluster.external_cluster
  • Nested Schema for connector_config_mirrormaker.target_cluster.this_cluster
  • Nested Schema for connector_config_s3_sink
  • Nested Schema for connector_config_s3_sink.s3_connection
  • Nested Schema for connector_config_s3_sink.s3_connection.external_s3
  1. Terraform reference
  2. Resources
  3. Managed Service for Apache Kafka
  4. Data Sources
  5. mdb_kafka_connector

yandex_mdb_kafka_connector (Data Source)

Written by
Yandex Cloud
Updated at August 7, 2025
  • Example usage
  • Schema
    • Required
    • Read-Only
    • Nested Schema for connector_config_mirrormaker
    • Nested Schema for connector_config_mirrormaker.source_cluster
    • Nested Schema for connector_config_mirrormaker.source_cluster.external_cluster
    • Nested Schema for connector_config_mirrormaker.source_cluster.this_cluster
    • Nested Schema for connector_config_mirrormaker.target_cluster
    • Nested Schema for connector_config_mirrormaker.target_cluster.external_cluster
    • Nested Schema for connector_config_mirrormaker.target_cluster.this_cluster
    • Nested Schema for connector_config_s3_sink
    • Nested Schema for connector_config_s3_sink.s3_connection
    • Nested Schema for connector_config_s3_sink.s3_connection.external_s3

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

Example usageExample usage

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

output "tasks_max" {
  value = data.yandex_mdb_kafka_connector.foo.tasks_max
}

SchemaSchema

RequiredRequired

  • cluster_id (String) The ID of the Kafka cluster.
  • name (String) The resource name.

Read-OnlyRead-Only

  • connector_config_mirrormaker (List of Object) Settings for MirrorMaker2 connector. (see below for nested schema)
  • connector_config_s3_sink (List of Object) Settings for S3 Sink connector. (see below for nested schema)
  • id (String) The ID of this resource.
  • properties (Map of String) Additional properties for connector.
  • tasks_max (Number) The number of the connector's parallel working tasks. Default is the number of brokers.

Nested Schema for Nested Schema for connector_config_mirrormaker

Read-Only:

  • replication_factor (Number) Replication factor for topics created in target cluster.

  • source_cluster (Block List, Min: 1, Max: 1) Settings for source cluster. (see below for nested schema)

  • target_cluster (Block List, Min: 1, Max: 1) Settings for target cluster. (see below for nested schema)

  • topics (String) The pattern for topic names to be replicated.

Nested Schema for Nested Schema for connector_config_mirrormaker.source_cluster

Read-Only:

  • alias (String) Name of the cluster. Used also as a topic prefix.

  • external_cluster (Block List) Connection settings for external cluster. (see below for nested schema)

  • this_cluster (Block List) Using this section in the cluster definition (source or target) means it's this cluster. (see below for nested schema)

Nested Schema for Nested Schema for connector_config_mirrormaker.source_cluster.external_cluster

Read-Only:

  • bootstrap_servers (String) List of bootstrap servers to connect to cluster.

  • sasl_mechanism (String) Type of SASL authentification mechanism to use.

  • sasl_password (String) Password to use in SASL authentification mechanism

  • sasl_username (String) Username to use in SASL authentification mechanism.

  • security_protocol (String) Security protocol to use.

Nested Schema for Nested Schema for connector_config_mirrormaker.source_cluster.this_cluster

Read-Only:

Nested Schema for Nested Schema for connector_config_mirrormaker.target_cluster

Read-Only:

  • alias (String) Name of the cluster. Used also as a topic prefix.

  • external_cluster (Block List) Connection settings for external cluster. (see below for nested schema)

  • this_cluster (Block List) Using this section in the cluster definition (source or target) means it's this cluster. (see below for nested schema)

Nested Schema for Nested Schema for connector_config_mirrormaker.target_cluster.external_cluster

Read-Only:

  • bootstrap_servers (String) List of bootstrap servers to connect to cluster.

  • sasl_mechanism (String) Type of SASL authentification mechanism to use.

  • sasl_password (String) Password to use in SASL authentification mechanism

  • sasl_username (String) Username to use in SASL authentification mechanism.

  • security_protocol (String) Security protocol to use.

Nested Schema for Nested Schema for connector_config_mirrormaker.target_cluster.this_cluster

Read-Only:

Nested Schema for Nested Schema for connector_config_s3_sink

Read-Only:

  • file_compression_type (String) Compression type for messages. Cannot be changed.

  • file_max_records (Number) Max records per file.

  • s3_connection (Block List, Min: 1, Max: 1) Settings for connection to s3-compatible storage. (see below for nested schema)

  • topics (String) The pattern for topic names to be copied to s3 bucket.

Nested Schema for Nested Schema for connector_config_s3_sink.s3_connection

Read-Only:

  • bucket_name (String) Name of the bucket in s3-compatible storage.

  • external_s3 (Block List, Min: 1) Connection params for external s3-compatible storage. (see below for nested schema)

Nested Schema for Nested Schema for connector_config_s3_sink.s3_connection.external_s3

Read-Only:

  • access_key_id (String) ID of aws-compatible static key.

  • endpoint (String) URL of s3-compatible storage.

  • region (String) Region of s3-compatible storage. Available region list.

  • secret_access_key (String) Secret key of aws-compatible static key.

Was the article helpful?

Previous
mdb_kafka_cluster
Next
mdb_kafka_topic
© 2025 Direct Cursus Technology L.L.C.