Handle AWS IoT Messages using AWS Lambda

   Go back to the Task List

  [« 6: Publish Messages from the Device ]    [8: Clean up »]

7: Check IoT Messages

You published the message in the previous task. Let’s check how the messages look in the Lambda function. The Lambda function is storing the messages in CloudWatch log as dummy processing.

  1. Goto Amazon Lambda console, open the dojolambdafunction details. Click on the Monitoring tab and then click on the View logs in CloudWatch link.

    AWS Lambda

  2. It opens the log view in a new browser window or tab. Click to open the Log stream.

    Amazon Lambda

  3. In log stream log, you can see the device message logged by Lambda. You see that the device message is passed in the original format to the the Lambda function. All you need to do is to build your business logic to process the message.

    Amazon Lambda

  4. That finishes the workshop. Please follow the next task to clean-up the resources so that you don’t incur any cost post the workshop.