1 個回答
- 最新
- 最多得票
- 最多評論
0
Hi. Your AWS IoT Core rule may be suffering an error. Two ways to check for errors:
- Define an error action for the rule: https://docs.aws.amazon.com/iot/latest/developerguide/rule-error-handling.html. The easiest error action to use is to republish to another topic, so then you can observe the error in the MQTT test client.
- Enable AWS IoT logging to CloudWatch, and look for logs of rule action errors: https://docs.aws.amazon.com/iot/latest/developerguide/cwl-format.html#rule-engine-logs
If there's no error, then it may be that your rule is not matching even though you think it is. Again, you can look in the CloudWatch logs to see if you get a RuleMatch
and RuleExecution
event for the messages not processed by Lambda.
Since the rule calls Lambda asynchronously, it's also possible for the rule to succeed, but you get a problem before your Lambda code runs. Guidance here: https://dev.to/iotbuilders/how-to-ensure-resilience-for-your-aws-iot-rules-engine-to-aws-lambda-integration-1aoi
相關內容
- 已提問 1 年前
- AWS 官方已更新 3 年前
- AWS 官方已更新 3 年前
- AWS 官方已更新 1 年前