I have an AWS MSK (Kafka) Broker. It has been setup for public access authenticating with IAM. I know the broker settings are correct, I have been using https://github.com/aws/aws-msk-iam-auth to successfully connect to the broker as both a consumer and producer written in Java. However I also have a requirement to write a C# consumer. Ideally, I would like to find a C# library that is equivalent to the java aws-msk-iam-auth library (probably some nuGet package). I can't find any such library or even any way to connect to an AWS MSK Broker using IAM authentication in C#. So my question: How do I connect to an AWS MSK Broker using IAM authentication from C#?
Asked
Active
Viewed 845 times
1 Answers
2
After more research, the answer is that in order to use IAM from C# I have to write code that does, in C#, the same thing that https://github.com/aws/aws-msk-iam-auth does in Java. I don't understand why AWS hasn't done this. They did it for Java. Another option, if I still want to use AWS, is to self-host Kafka on an EC2 and not use MSK or IAM at all. That's probably the best solution.

Rob Gorman
- 3,502
- 5
- 28
- 45