从AWS IoT调用Lambda函数

0

【以下的问题经过翻译处理】 我正在努力从iot调用Lamda函数。我可以看到iot设备发送的MQTT测试客户端订阅消息。但是无法调用Lamda函数。我遵循了教程https://docs.aws.amazon.com/iot/latest/developerguide/iot-lambda-rule.html#iot-lambda-rule-test-rule。我还将Cloudwatch日志附加到AWS IoT规则的错误操作下。但仍然没有记录任何数据。我不确定AWS IoT和Lamda之间是否建立了连接。但是,我可以成功地从API Gateway调用Lamda函数。

profile picture
EXPERT
asked 6 months ago21 views
1 Answer
0

【以下的回答经过翻译处理】 你好。我建议你启用IoT日志记录,并查找RuleExecution事件类型:https://docs.aws.amazon.com/iot/latest/developerguide/diagnosing-rules.html

通过此操作,您可以确认或拒绝您的规则是否在运行,并告诉您在执行Lambda操作时是否遇到任何错误。

profile picture
EXPERT
answered 6 months 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