I have created an MSK cluster with IAM Access Control as a mechanism for authentication and authorization. I can see the broker nodes for my cluster on MSK Console but when I try to write a message to a topic from my kafka client, it gives me error "Broker may not be available".
When I used the cli command i.e. get-bootstrap-brokers, it shows no value for the "BootstrapBrokerStringSaslIam". It gives me nothing at all. Not even a message telling the status of brokers.
I have followed the official documentation for it https://docs.aws.amazon.com/msk/latest/developerguide/iam-access-control.html
However, I can get the ZooKeeper string for my IAM Access Control cluster and can create kafka topics from my kafka client.
I don't know what's happened to my brokers.
Can anyone tell me what should I do?