Closed endofcake closed 4 years ago
Ok, looks like the resource_name
in this case needs to be the name of the cluster. This works:
resource "kafka_acl" "sample-cluster-describe" {
acl_host = "*"
acl_operation = "Describe"
acl_permission_type = "Allow"
acl_principal = "User:sample"
resource_name = "kafka-cluster"
resource_pattern_type_filter = "Literal"
resource_type = "Cluster"
}
I'm trying to add ACLs similar to the ones created by running a command:
This principal needs DESCRIBE on group and cluster level.
The group level works without issues, however, when I try to add the same permissions on the cluster level:
I'm getting an error:
I suspect it's because cluster-level permissions do not need the
resource_name
, however, it is a required argument and I can't omit it.