We are setting up the infrastructure in AWS to collect data from IOT devices. Once the devices are registered, they will starting sending json messages to a few MQTT topics. In order to receive the messages and parse them and save the data into a database I plan to create a rule which triggers a Lambda function when a message is received. The Lambda function does the parsing.
Based on the AWS IoT documentation, a rule can be created under IoT to evaluate messages sent by your things with query like SELECT * FROM 'mymsgs/+'
. It appears that the rule is not associated with any particular devices. So can I assume it can listen to the topics from all devices under the same account? If that is the case, I can just have one Lambda function to process all the messages that come from different devices.