Brokers Connection string doesn't show creating cIuster with IAM Access

0

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?

Mouzma
已提問 3 年前檢視次數 835 次
3 個答案
0
已接受的答案

I had the same issue when I ran aws kafka get-bootstrap-brokers with an out-of-date aws-cli. Running it with aws-cli/2.2.3 works for me.

njlaw
已回答 3 年前
0

Great tip. You will need to update the version of the CLI to use the latest features when they involve API changes.

已回答 3 年前
0

Yes, it is working now. Thank you njlaw and djwylie :)

Mouzma
已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南