Terraform module for Confluent Cloud Kafka clusters
- cluster.availability => SINGLE_ZONE or MULTI_ZONE
- cluster.cloud => GCP, AWS or AZURE
- cluster.type => BASIC or STANDARD or DEDICATED
- for DEDICATED clusters, cluster.cku must be set
Set the Confluent provider:
module "cluster" {
for_each = { for cluster in var.confluent.environment.network.clusters : cluster.display_name => cluster }
source = "github.com/mcolomerc/terraform-confluent-kafka-cluster"
environment = var.confluent.environment.id
cluster = each.value
network = module.network.private_link_confluent_network.id
providers = {
confluent.confluent_cloud = confluent
}
}
Where cluster
can be defined as:
clusters = [
{
display_name = "mcolomer-standard-inventory_dev1"
availability = "MULTI_ZONE"
cloud = "AWS"
region = "eu-central-1"
type = "DEDICATED"
cku = "2"
}
]
No modules.
Name |
Description |
Type |
Default |
Required |
byok |
Confluent BYOK ID |
string |
"" |
no |
cluster |
Cluster definition |
object({ display_name = string availability = string cloud = string region = string type = string cku = optional(string) config = optional(map(string)) }) |
n/a |
yes |
environment |
Confluent Cloud Environment |
string |
n/a |
yes |
network |
Confluent Cloud Network ID |
string |
"" |
no |
service_account |
Service Account and Role for cluster management. |
object({ name = string role = string }) |
null |
no |