1 Answer
- Newest
- Most votes
- Most comments
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
Relevant content
- asked 9 months ago
- asked 2 years ago
- asked 6 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 2 years ago