Call Lamda function from AWS iot


I am trying to call Lamda function from iot. I can see the subscribed message on MQTT Test Client sent from iot device. But not able to call Lamda function. I followed the tutorial I have also attached cloudwatch logs under error action to the AWS IoT rule. Still, nothing was logged. I am not sure if the connection is being established between AWS IoT and Lamda. However, I am able to call Lamda function successfully from API Gateway.

  • can you try put '#' as topic in the rule and SELECT * FROM "#" and see if the lambda will run. '#' covers all topics. This will tell if rule is being executed.

asked 10 days ago24 views
1 Answer
Accepted Answer

Hi. I recommend you enable IoT logging and look for the RuleExecution event type:

This will confirm or deny whether your rule is running, and tell if you if it's suffering any errors when executing the Lambda action.

profile picture
answered 10 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions