-
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
Plugin crashes when running README example #80
Comments
Initial testing suggests that downgrading to 0.2.11 (the version in the example) fixes this problem, but upgrading to 0.3.2 does not. |
Thanks for reporting @BnMcG This is actually more of an issue with |
No problem! I suspected that might be the case, but wasn't 100% sure. I'll test 0.3.3 now - or is lazy-provider initiation required? Sorry - I'm not too familiar with how Terraform providers work! |
lazy initiation is needed to run provision the cluster and topic in one run, but, if break it into two different runs ... it should work. main.tf terraform {
required_providers {
confluentcloud = {
source = "Mongey/confluentcloud"
}
kafka = {
source = "Mongey/kafka"
version = "0.3.1"
}
}
}
resource "confluentcloud_environment" "environment" {
name = var.confluent_cloud_environment_name
}
resource "confluentcloud_kafka_cluster" "kafka_cluster" {
name = "foo"
service_provider = "aws"
region = "eu-west-2"
availability = "LOW"
environment_id = confluentcloud_environment.environment.id
deployment = {
sku = "BASIC"
}
network_egress = 100
network_ingress = 100
storage = 5000
}
resource "confluentcloud_api_key" "credentials" {
cluster_id = confluentcloud_kafka_cluster.kafka_cluster.id
environment_id = confluentcloud_environment.environment.id
}
main.tf
I'll work on fixing the lazy initiation over in |
I'm happy to have a crack at the lazy initiation if you have any pointers - I googled but nothing too comprehensive came up. |
Hi,
I was giving this plugin a try this evening, but unfortunately the example in the README seems to crash with new versions of the Kafka provider:
When I run this on Terraform Cloud:
I'm assuming this is something to do with the Confluent Cloud cluster not existing yet when the Kafka adapter attempts to connect to it, but I'm unsure of how to proceed. Do you have any pointers?
I'd like to be able to create a cluster and some topics in one Terraform plan, if possible.
Cheers.
The text was updated successfully, but these errors were encountered: