3 ms·
I would recommend not hardcoding AWS credentials like that and use AWS IoT Credential provider: https://docs.aws.amazon.com/iot/latest/developerguide/authorizin
by redditor98654 4y ago
I would recommend not hardcoding AWS credentials like that and use AWS IoT Credential provider: https://docs.aws.amazon.com/iot/latest/developerguide/authorizing-direct-aws.html https://docs.aws.amazon.com/iot/latest/developerguide/author...
I also did not see in the code why you would need those AWS credentials though as your connection to AWS IoT core is using X.509 certificates which is recommended. Might also want to look at JIT-p (just in time provisioning).