I use the MQTT client in JavaScript (paho-mqtt-js) to connect to the AWS IoT endpoint, and I can connect if I use my own AWS credentials.
However, if I use the credentials generated by Cognito for the registered user, I cannot do this. My authorized Cognito role in IAM has an "AWSIoTFullAccess" policy associated with it, so I'm confused about why these credentials return a 403 error every time.
Any help regarding this would be greatly appreciated.
source share