-
Notifications
You must be signed in to change notification settings - Fork 47
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
Kafka topic is not created when provisioning the Kafka Cluster #36
Comments
Thanks @Mongey |
Hey I'm getting the same error when trying to create a an API key with a service account |
@ryandutton Yeah I believe there's a similar issue with API Keys.... they aren't ready to be used immediately after creation. I'm experimenting with having the provider wait until the key is active -- by having the provider repeatedly attempt to connect to the cluster. That's going on in #37, and if successful there, I can port that to API Key creation. |
It might be a different issue but I was getting similar results where I would create an api key using the confluentcloud provider and then use that to authenticate the Kafka provider. What I found was that there was insufficient permissions on the service account key to allow the creation of a topic (or an act to allow topic creation). Once I manually assigned cluster and topic create permissions in the UI, I could successfully run the terraform to create the topics. To summarise, in my case it wasn't that the key didn't exist, it was insufficient permissions on creation. |
Not sure if possible in the confluentcloud provider but if you can create acl for cluster and topic creation and read then that will allow the Kafka provider to have sufficient permissions to create topic. |
I'm also looking for this to be integrated in the terraform plugin |
Does anybody know if this is resolved after a year since last post? I still get the same error. |
I am getting the same error. Any solution yet? |
Edit: I asked my network admin to open port :9092 then I could connect and did not get the “API key may not be provisioned yet” error. |
You need to have access to port 9092 to produce and consume messages with the Kafka CLI. |
I try to run the example to provision a Kafka cluster in the Confluent Cloud and create a topic.
The environment and cluster are successfully created but the topic is not created. It looks like the Kafka broker is not yet ready to create the topic.
I'm using:
terraform apply
output:When I run
terraform apply
for the second time the topic will be created.Is there a way to wait until the Kafka cluster is ready to create a topic?
The text was updated successfully, but these errors were encountered: