Posted On: Jul 25, 2019
When using AWS IoT Events, you now have the option to define actions to invoke AWS Lambda functions, publish messages to the Amazon Simple Queue Service (SQS) queue or an Amazon Kinesis Data Firehose delivery stream, and republish messages to IoT Events. Previously, you could only define actions to publish messages to SNS and MQTT. These expanded actions make it easier to build monitoring applications that help you quickly understand the state of your devices by providing more options to process messages created by IoT Events.
You can define a Lambda action to invoke a specific Lambda function with the message payload. The Lambda function receives the message payload as an input parameter and can further process the information in the message. Similarly, you can define an SQS action to send the message payload to a SQS queue that other services could read from. You can send the message payload to a Firehose delivery stream to display alerts in applications such as real-time dashboards. Finally, by defining IoT Events as an action, you send the message payload as an input to another detector model which can help simplify complex detector models into a hierarchy of simple ones.
These new actions are available in all regions where AWS IoT Events is available. To get started, open the IoT Events console and select a state for a detector model. Add an event to the state, and select from the list of available actions.