[short] Update Amazon Lambda policy to use with AWS IoT

Today I’ve spent a lot of time, to get my lambda code to work with an IoT device. After checking out the logs with Amazon Cloudwatch, I’ve found out, that there was a permission problem.

To enable IoT control, from lambda, you need to edit the lambda policy. Just define the allowed actions as followed, to enable all “iot.*” actions:

You can also define explicit actions by doing following:

That’s it! Now you can execute your code from Amazon AWS lambda to control your AWS IoT device.

Leave a Reply