amazon-web-servicesapache-kafkaterraformaws-msk

How to automate adding kafka acls using aws cli or terraform?


I am using terraform to create AWS MSK cluster, is it possible to define kafka acls at terraform level or can we use aws cli to add them once cluster is up?

I want to automate this and don't want admin user to create acls manually.


Solution

  • Currently, Terraform does not support Kafka ACLs for AWS MSK. Once the cluster is up, you can use the AWS CLI or Kafka CLI (kafka-acls.sh) to automate the creation of ACLs, usually through a script that is triggered after deployment.