confluentinc / terraform-provider-confluent

Terraform Provider for Confluent
Apache License 2.0
27 stars 63 forks source link

Missing attribute "confluent_topic_type" of Kafka topic config in Terraform provider #427

Open RishuSinghS opened 4 weeks ago

RishuSinghS commented 4 weeks ago

Hello,

I have noticed that a new attribute, confluent_topic_type, is automatically added to Kafka Topic configurations when created manually through the Confluent portal.

image

However, I cannot find this attribute currently documented or supported in the Terraform provider for Kafka topics: Terraform Kafka Topic Resource.

Our workflow fails when attempting to import a manually created topic through Terraform, as it tries to remove the confluent.topic.type attribute:

### 0 to add, 1 to change, 0 to destroy, 0 to replace.
- change
    - module.kafka_topic.confluent_kafka_topic.kafka_topic
<details><summary>Change details</summary>

# module.kafka_topic.confluent_kafka_topic.kafka_topic will be updated in-place
@@ -3,7 +3,6 @@
     "cleanup.policy": "delete",
     "confluent.key.schema.validation": "false",
     "confluent.key.subject.name.strategy": "io.confluent.kafka.serializers.subject.TopicNameStrategy",
-    "confluent.topic.type": "standard",
     "confluent.value.schema.validation": "true",
     "confluent.value.subject.name.strategy": "io.confluent.kafka.serializers.subject.TopicNameStrategy",
     "delete.retention.ms": "86400000",

Could you please assist with a fix for this issue?