confluent_schema_registry_cluster Data Source

General Availability

confluent_schema_registry_cluster describes a Schema Registry cluster data source.

Example Usage

provider "confluent" {
  cloud_api_key    = var.confluent_cloud_api_key    # optionally use CONFLUENT_CLOUD_API_KEY env var
  cloud_api_secret = var.confluent_cloud_api_secret # optionally use CONFLUENT_CLOUD_API_SECRET env var
}

# Loads the only Schema Registry cluster in the target environment
data "confluent_schema_registry_cluster" "example_using_env_id" {
  environment {
    id = "env-xyz456"
  }
}

output "example_using_env_id" {
  value = data.confluent_schema_registry_cluster.example_using_env_id
}

data "confluent_schema_registry_cluster" "example_using_id" {
  id = "lsrc-abc123"
  environment {
    id = "env-xyz456"
  }
}

output "example_using_id" {
  value = data.confluent_schema_registry_cluster.example_using_id
}

data "confluent_schema_registry_cluster" "example_using_name" {
  display_name = "Stream Governance Package"
  environment {
    id = "env-xyz456"
  }
}

output "example_using_name" {
  value = data.confluent_schema_registry_cluster.example_using_name
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to the preceding arguments, the following attributes are exported: