Managed Kafka clusters, topics and users in Terraform
The Artie Terraform provider adds artie_kafka_cluster, artie_kafka_topic and artie_kafka_user, so Managed Kafka can be provisioned and changed through infrastructure as code.
Read more: Managed Kafka clusters, topics and users in Terraform
Managed Kafka clusters could only be created and changed from the Dashboard. Teams that keep their infrastructure in Terraform had nothing to put under review.
Provider v2.3.56 adds three resources. artie_kafka_cluster sets the name, AWS region, instance type, broker count, storage, allowed IP ranges, tiered storage and storage autoscaling, and exposes the bootstrap address and status once the cluster is up. artie_kafka_topic sets partitions, replication factor, retention, days on disk and tiered storage for a topic. artie_kafka_user creates a SASL/SCRAM login with a producer_consumer or admin access profile; the generated password is a sensitive value in state. Creating a cluster returns while it is still deploying, and changing the region replaces the cluster.
Brokers, storage and a topic's partition count can only grow, so a plan that shrinks any of them fails at plan time rather than part-way through an apply. Destroying a cluster soft-deletes it, and it can be restored from the Dashboard.
This is for platform teams that want Managed Kafka reviewed, versioned and applied through Terraform.
Why this matters
- Clusters, topics and credentials live in the same repository as the rest of your infrastructure
- Unsupported shrinks fail at plan time instead of mid-apply
- Passwords are generated for you, never typed into a config