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

MSK - Error: kafka server: failed to create one or more ACL rules #270

Closed
Constantin07 opened this issue Jun 20, 2022 · 1 comment
Closed

Comments

@Constantin07
Copy link
Contributor

I'm trying to add the second principal with Admin permissions to AWS MSK cluster.

The principal which I'm using already has Admin privileges.

resource "kafka_acl" "admin2_cluster_alter" {
  resource_name       = "kafka-cluster"
  resource_type       = "Cluster"
  acl_principal       = "CN=Admin,OU=IT Department,O=Some Org,L=Location,ST=England,C=GB"
  acl_operation       = "Alter"
  acl_permission_type = "Allow"
  acl_host            = "*"
}

PS: The principal matches 100% certificate distinguished name.

Plan runs fine but when applied I'm getting:

kafka_acl.admin2_cluster_alter: Creating...

Error: kafka server: failed to create one or more ACL rules: kafka server: This most likely occurs because of a request being malformed by the client library or the message was sent to an incompatible broker. See the broker logs for more details

  with kafka_acl.admin2_cluster_alter,
  on admin.tf line 10, in resource "kafka_acl" "admin2_cluster_alter":
  10: resource "kafka_acl" "admin2_cluster_alter" {

Getting the same error for other Cluster Operations.

Has anyone come across this issue before ?

@Constantin07
Copy link
Contributor Author

UPDATE: The root cause was missing User: in front of principal value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant