How to connect to IoT Core by IAM (access key id / pwd)

0

hello,

i'm trying to connect to AWS IoT Core from my PC using mqtt client tools. (like, MQTT.fx, mqttbox)

I can connect successfully by certificate mode.

But I cannot connect by user id / pwd mode. (IAM user access key id, access key pwd)

Let me know how to configure AWS settings or mqtt client settings.

1개 답변
0

Hi, thanks for the question! In order to use IAM credentials, the SigV4 process is used. Since this is not supported in the MQTT protocol overall, it is accomplished by establishing a connection via MQTT over websocket. The full list of communication protocols can be found here.

You can see this in action here. This is a Python example that uses publish/subscribe. By setting the --use-websocket and --signing-region arguments, normal IAM credentials can be used. For example, by setting environment variables.

Let us know if this is helpful!

AWS
Gavin_A
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인