-
Notifications
You must be signed in to change notification settings - Fork 973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR]: Add a managed Kafka module #2972
Comments
I don't think we have the bandwidth for this, but you are welcome to send a PR. |
@ludoo I could certainly clean up what I've done manually and submit a PR, but it wouldn't necessarily cover all aspects of the module it's wrapping. Is there a way that this can be iterated on as a "beta module"? |
Rather than a module, this might be one of our new blueprints, which reside under |
This is a simple example. In your case the project template should also attach to a shared vpc, like we're doing in the template we're preparing for MongoDB. |
But that is a single resource... |
@ludoo Here's the full example that I worked from. It includes the Kafka cluster resource and the topics resource. https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/managed_kafka_cluster My variables looked something like this variable "project_id" {
type = string
description = "The project ID."
}
variable "cluster_id" {
type = string
description = "The cluster ID."
}
variable "location" {
type = string
description = "The location."
default = "us-central1"
}
variable "subnet" {
type = string
description = "The subnet used by the cluster."
}
variable "vcpu_count" {
type = number
description = "The number of vCPUs."
default = 3
}
variable "memory_bytes" {
type = number
description = "The memory in bytes to allocate to the instance."
default = 3221225472 # 3 GiB
}
variable "topics" {
type = list(object({
topic_id = string
partition_count = optional(number, 3)
replication_factor = optional(number, 1)
}))
description = "The list of topics."
default = []
} |
The feature request
Add a managed kafka module that can spin up both a Kafka cluster as well as a set of topics.
Proposed solution
A Kafka module would be able to spin up a cluster and a list of topics with as little configuration as possible.
Additional context
Having done it by hand using the google provider, it took me a long time because I had to figure out the convention for cluster paths that are required by the topic module.
The text was updated successfully, but these errors were encountered: