Mongey / terraform-provider-kafka

Terraform provider for managing Apache Kafka Topics + ACLs
MIT License
520 stars 132 forks source link

resource_pattern_type_filter gets ignored #444

Closed azasconstantinos closed 3 months ago

azasconstantinos commented 3 months ago

module version v0.7.1 MSK on aws kafka 3.6.0 terraform v1.9.4 using sasl_aws_profile

{
    resource_name       = "test-group-"
    resource_type       = "Group"
    resource_pattern_type_filter = "Prefixed"
    acl_principal       = "User:test"
    acl_host            = "*"
    acl_operation       = "Describe"
    acl_permission_type = "Allow"
}
# module.kafka_topics.kafka_acl.acl[0] will be created
+ resource "kafka_acl" "acl" {
    + acl_host                     = "*"
    + acl_operation                = "Describe"
    + acl_permission_type          = "Allow"
    + acl_principal                = "User:test"
    + id                           = (known after apply)
    + resource_name                = "test-group-"
    + resource_pattern_type_filter = "Literal"
    + resource_type                = "Group"
  }

TF_LOG DEBUG shows 2024-08-16T14:25:35.521+0300 [WARN] Provider "registry.terraform.io/mongey/kafka" produced an invalid plan for module.kafka_topics.kafka_acl.acl[0], but we are tolerating it because it is using the legacy plugin SDK. The following problems may be the cause of any confusing errors from downstream operations: