digitalocean_database_kafka_schema_registry

Generated on 29 Jan 2026 from Terraform version v2.75.0

Provides a DigitalOcean Kafka schema registry for Kafka clusters.

Example Usage

Create a new Kafka Schema Registry

resource "digitalocean_database_kafka_schema_registry" "schema-01" {
  cluster_id   = digitalocean_database_cluster.kafka-example.id
  subject_name = "test-schema"
  schema_type  = "avro"
  schema       = <<EOF
{
  "type": "record",
  "namespace": "example",
  "name": "TestRecord",
  "fields": [
    {"name": "id", "type": "string"},
    {"name": "name", "type": "string"},
    {"name": "value", "type": "int"}
  ]
}
EOF
}

resource "digitalocean_database_cluster" "kafka-example" {
  name       = "example-kafka-cluster"
  engine     = "kafka"
  version    = "3.5"
  size       = "gd-2vcpu-8gb"
  region     = "blr1"
  node_count = 3
  tags       = ["production"]
}

Argument Reference

The following arguments are supported:

  • cluster_id - (Required) The ID of the target Kafka cluster.
  • subject_name - (Required) The name of the schema subject.
  • schema_type - (Required) The schema type. Available values are: avro, json, or protobuf.
  • schema - (Required) The schema definition as a string.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.