Closed vilmosnagy closed 2 years ago
Thanks for raising an issue @vilmosnagy!
Reading our sample guide might help to get more context.
More specifically, you for 0.2.0
TF provider version you need to follow this section. The catch is you need to use Cluster API Key instead of Cloud API Key:
credentials {
key = var.kafka_api_key
secret = var.kafka_api_secret
}
Let me know if that helps!
and create the topics in one terraform apply?
It's not possible in 0.2.0
version just yet but might become available in 0.3.0
release when we add a new API Key TF resource.
Thanks four your quick reply @linouk23!
If I understand you correctly, there's no way to create:
And there's no way to create API keys for the cluster in terraform as well.
in one terraform run. I have to:
terraform apply -var="should_create_the_topics_as_well=false"
terraform apply -var="should_create_the_topics_as_well=true"
Is that correct? That seems a bit complicated, that I can't create my whole infrastructure from terraform in one go, but I have to go to the UI multiple times.
Is that correct? That seems a bit complicated, that I can't create my whole infrastructure from terraform in one go, but I have to go to the UI multiple times.
That's exactly right!
That said, we are aware of these important issues and will fix in our new versions of TF provider so it'll be possible to create whole infrastructure from terraform in one go without having to go to the UI at all.
Where can I keep track of this feature request?
@phumberdroz that's a great question, I'm not sure why I closed this issue.
The best way is probably to start watching this repository and so you're notified whenever there are any updates.
Does version 0.3.0 fixed that issue? didn't see any related line in the changelog...
@itaykat it didn't, we're working on a fix that we are hoping to release toward the end of March.
Duplicate of this request: https://github.com/confluentinc/terraform-provider-confluentcloud/issues/4
@vilmosnagy, @itaykat we're very excited to let you know we've just published a new version of TF Provider that includes api_key
resource among other very exciting improvements: it enables fully automated provisioning of our key Kafka workflows (see the demo) with no more manual intervention and makes it our biggest and most impactful release.
The only gotcha we've renamed it from confluentinc/confluentcloud
to confluentinc/confluent
but we published a migration guide so it should be fairly straightforward. The existing confluentinc/confluentcloud
will be deprecated soon so we'd recommend switching as soon as possible.
New confluentinc/confluent
provider also includes a lot of sample configurations so you won't need to write them from scratch. You can find them here, find a full list of changes here.
I have the following terraform file based on the examples:
What should I put to the
confluentcloud_kafka_topic.transit-alert-trip-patches.credentials
block? With the value of thevar.confluentcloud_api_key
&var.confluentcloud_api_secret
theterraform apply
failes. I see no related output from theconfluentcloud_kafka_cluster.basic-cluster
block.Is there a way to:
terraform apply
?Regards,