AWS Logo
Menu

ECS <> MSK transient auth issues

MSK IAM auth based access from ECS keeps breaking randomly

Published Aug 16, 2024
I have a Java Spring based service deployed on ECS. It writes data to MSK. The bootstrap server endpoint is IAM authenticated. I use 9098 port to connect with it & write data.
In very very random cases, like once or twice a week, I get a few error logs in my ECS service:
[Producer clientId=producer-1] Connection to node 3 (***.kafka.us-east-1.amazonaws.com/***:9098) failed authentication due to: [79bba38a-1dbf-4ecc-8b33-d8e291442480]: Access denied
How can I debug this error? What is causing this?
 

Comments