Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty Summary: This is always a bug in the provider and should be reported to the provider developers. #442

Open
lebohnes opened this issue Aug 12, 2024 · 0 comments
Labels

Comments

@lebohnes
Copy link

lebohnes commented Aug 12, 2024

After updating acl's in terraform, i sucessfully recreated the acl's

module.msk[0].kafka_acl.read_acl: Creation complete after 0s [id=User:USERNAME|*|Read|Allow|Topic|*|Literal] module.msk[0].kafka_acl.write_acl: Creation complete after 1s [id=User:USERNAME|*|Write|Allow|Topic|*|Literal] module.msk[0].kafka_acl.describe_acl: Creation complete after 1s [id=User:USERNAME|*|Describe|Allow|Topic|*|Literal]

but i got the following error for all of my topics:
Error: Empty Summary: This is always a bug in the provider and should be reported to the provider developers. │ │ with module.msk[0].kafka_topic.topics["TOPIC_NAME"], │ on msk/topics.tf line 6, in resource "kafka_topic" "topics": │ 6: resource "kafka_topic" "topics" {

kafka version: 0.7.1

provider "kafka" {
  tls_enabled          = true
  sasl_mechanism       = "aws-iam"
  sasl_aws_region      = var.region
  sasl_aws_role_arn    = var.iam_role
  sasl_aws_creds_debug = true
}

resource "kafka_topic" "topics" {
  for_each           = toset(local.topic_names)
  name               = each.value
  replication_factor = 3
  partitions         = 1
  config = {
    "cleanup.policy" = "compact"
  }
}

resource "kafka_acl" "read_acl" {
  for_each            = toset(local.topic_names)
  resource_name       = each.value
  resource_type       = "Topic"
  acl_principal       = "User:${local.sasl_username}"
  acl_host            = "*"
  acl_operation       = "Read"
  acl_permission_type = "Allow"
}

resource "kafka_acl" "write_acl" {
  for_each            = toset(local.topic_names)
  resource_name       = each.value
  resource_type       = "Topic"
  acl_principal       = "User:${local.sasl_username}"
  acl_host            = "*"
  acl_operation       = "Write"
  acl_permission_type = "Allow"
}

resource "kafka_acl" "describe_acl" {
  for_each            = toset(local.topic_names)
  resource_name       = each.value
  resource_type       = "Topic"
  acl_principal       = "User:${local.sasl_username}"
  acl_host            = "*"
  acl_operation       = "Describe"
  acl_permission_type = "Allow"
}

resource "kafka_acl" "read_group_acl" {
  resource_name       = "*"
  resource_type       = "Group"
  acl_principal       = "User:${local.sasl_username}"
  acl_host            = "*"
  acl_operation       = "Read"
  acl_permission_type = "Allow"
}

resource "kafka_acl" "describe_group_acl" {
  resource_name       = "*"
  resource_type       = "Group"
  acl_principal       = "User:${local.sasl_username}"
  acl_host            = "*"
  acl_operation       = "Describe"
  acl_permission_type = "Allow"
}
@Mongey Mongey added the bug label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants