'Unable to send data to MSK through ECS Fargate

I'm unable to send data to MSK through ECS Fargate. The container configuration is correct. There is some issue with the connectivity of ECS to MSK. Could anyone pls suggest some ways to troubleshoot? Also, we've whitelisted account's CIDR on port 9092. Still unable to connect.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source