I installed aws-iot-device-sdk module for nodejs , i wrote the code in the attached picture the code
and i triple checked my iot device configurations in the cloud