If you see the following error when trying to publish a message to IoT client. The reason is most likely: you need to grant LAMBDA permission for accessing IoT client. Go to rule console and create a proper role with IoT accessing permission https://console.aws.amazon.com/iam/home#/roles Now, you can apply this role to your LAMBDA function.