terraform-provider-confluent: Provider produced inconsistent result after apply

Hi, I just stumbled across this error when trying to tag a topic via my module:

╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to
│ module.esb.confluent_tag_binding.topic_tag_binding["fraport.fra.internal.esb.test-ESB"],
│ provider
│ "module.esb.provider[\"registry.terraform.io/confluentinc/confluent\"]"
│ produced an unexpected new value: Root resource was present, but now
│ absent.
│ 
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵

I tried to tag a topic with two tags. One tag was successful, the second failed.

module.esb.confluent_tag_binding.topic_tag_binding["topic-TLP_GREEN"]: Creating...
module.esb.confluent_tag_binding.topic_tag_binding["topict-ESB"]: Creating...
module.esb.confluent_tag_binding.topic_tag_binding["topic-TLP_GREEN"]: Creation complete after 1s [id=lsrc-<id>/TLP_GREEN/lsrc-<id>:lkc-<id>:topic/kafka_topic]

my confluent_tag_binding resource:

resource "confluent_tag_binding" "topic_tag_binding" {
  for_each = {
    for binding in local.flattened_tag_bindings : "${binding["name"]}-${binding["tag"]}" => binding
  }

  tag_name    = each.value.tag
  entity_name = "${var.schema_registry_cluster_id}:${var.cluster_id}:${each.value.name}"
  entity_type = "kafka_topic"
}

Confluent Cloud UI shows both as applied:

image

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 18 (8 by maintainers)

Commits related to this issue

Most upvoted comments

We have release a new version (v1.44.0), please let me know if you still see this issue