Closed yottta closed 3 years ago
@yottta I do not have such issues on my end with Terraform v0.13.2 :) please ensure that you have configured the provider in a 'new' way
terraform {
required_providers {
# https://github.com/Mongey/terraform-provider-confluentcloud
confluentcloud = {
source = "mongey/confluentcloud"
version = "0.0.5"
}
# https://github.com/Mongey/terraform-provider-kafka
kafka = {
source = "mongey/kafka"
version = "0.2.10"
}
}
required_version = "0.13.2"
}
and use it after all as:
locals {
bootstrap_servers = [replace(confluentcloud_kafka_cluster.env0_test.bootstrap_servers, "SASL_SSL://", "")]
}
provider "confluentcloud" {
username = var.confluent_username
password = var.confluent_paswword
}
provider "kafka" {
bootstrap_servers = local.bootstrap_servers
tls_enabled = true
sasl_username = confluentcloud_api_key.env0_test.key
sasl_password = confluentcloud_api_key.env0_test.secret
sasl_mechanism = "plain"
}
Thanks @rjudin.
I tried it, and it works indeed. But this might be because the providers are fetched from the terraform registry, which were not before (cause were not pushed).
And for confluentcloud
, I used a fork of it (I don't remember the reason now, but I'm more than sure that was a bug at some point), which is not published to registry, so I needed to use from a local file but for this the documentation on terraform 13 it's pretty foggy.
Anyway, thanks for this! I will close the issue for now.
I am trying to migrate to terraform 13 but the plugin is not working with it. I don't have a proper provider development environment but I tried to update the go terraform dependency, built it, but still doesn't work. Can you take a look and provide a new version that works with terraform 13?
Thanks