-
Notifications
You must be signed in to change notification settings - Fork 5
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
Example for integration with confluentinc/confluent-kafka-go #12
Comments
I got it running with the following code:
You have to replace the following strings in my code: YOUR-BROKER-URL, YOUR-AWS-REGION, YOUR-TOPIC-NAME For running the code in an ECS-Task, I'm using the following Dockerfile:
For me, in order to get it running, it was very important to install ca-certificates ("RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates"), since debian:bookworm-slim doesn't have them by default. Depending on your docker base image, you may not need to do this though. This exact code is successfully producing events on my kafka-topic, once the client-policies are correctly set as stated in the AWS documentation. |
#Hi, I encountered a problem when connecting consumer to the brokers using the IAM signer and the confluent kafka go client. Setup the code similar as the above example. When I tried to ReadMessage from a topic, it return KafkaErrTimeOut. Looked at the debug logs - it shows no brokers is available for coordination but my brokers are healthy. If anyone can help on this?
|
Describe the feature
Since confluentinc/confluent-kafka-go is most generic and it uses underlaying librdkafka natively. Would it be possible that someone would provide example how to integrate with it?
Use Case
Proposed Solution
No response
Other Information
No response
Acknowledgements
aws-msk-iam-sasl-signer-go Module Versions Used
1.0.0
Go version used
1.21
The text was updated successfully, but these errors were encountered: