confluentinc / terraform-provider-confluent

Terraform Provider for Confluent
Apache License 2.0
118 stars 61 forks source link

Getting ` PUT ***/catalog/v1/entity giving up after 5 attempt(s) │ ` on creating `confluent_catalog_entity_attributes`resource #390

Closed mkazla closed 2 weeks ago

mkazla commented 3 weeks ago

Hi,

I am getting below error on creating confluent_catalog_entity_attributes,

│ Error: error creating Entity Attributes Put "***/catalog/v1/entity": PUT ***/catalog/v1/entity giving up after 5 attempt(s)
│ 
│   with module.test_general_tagging.module.tag.confluent_catalog_entity_attributes.main,
│   on .terraform/modules/test_general_tagging.tag/modules/kafka-tags/main.tf line 8, in resource "confluent_catalog_entity_attributes" "main":
│    8: resource "confluent_catalog_entity_attributes" "main" {
│ 

My TF code:

resource "confluent_catalog_entity_attributes" "main" {
  entity_name = "lsrc-****:lkc-***:test1-topic"
  entity_type = "kafka_topic"
  attributes = {
    "owner"       = "testing"
    "description" = "Kafka topic for orders"
    "ownerEmail"  = "abc@123.com"
    "project ID" = "test1123"
   }
}

Kindly help.

zhenli00 commented 2 weeks ago

Could you try remove "project ID" field, custom attributes are recommended to use business metadata resource

linouk23 commented 2 weeks ago

cc @mkazla let us know if it resolves the issue, seems like

resource "confluent_catalog_entity_attributes" "main" {
  entity_name = "lsrc-****:lkc-***:test1-topic"
  entity_type = "kafka_topic"
  attributes = {
    "owner"       = "testing"
    "description" = "Kafka topic for orders"
    "ownerEmail"  = "abc@123.com"
   }
}

should work.

mkazla commented 2 weeks ago

Thanks this works. We can close the issue.