1 Answer
- Newest
- Most votes
- Most comments
0
Please check the documentation.
Specifically, for Java you would need to include JARs with auth classes, and then add following properties to your kafka client/app:
security.protocol=SASL_SSL
sasl.mechanism=AWS_MSK_IAM
sasl.jaas.config=software.amazon.msk.auth.iam.IAMLoginModule required;
sasl.client.callback.handler.class=software.amazon.msk.auth.iam.IAMClientCallbackHandler
Make sure the IAM role you will be using to run the app has policies for accessing MSK cluster.
Same documentation include all you need to know for Python apps as well. if you face specific issue, please attach more details, like what you are trying to run, what errors/exceptions you are facing, etc.
answered 2 years ago
Relevant content
- asked 2 years ago
- asked 4 years ago
- asked 3 years ago
