Handle AWS IoT Messages using AWS Lambda

   Go back to the Task List

  [« 1: Pre-requisite ]    [3: Register the Device »]

2: Create IoT Role

You first create an IAM Role which is used by AWS IoT Core to call the Lambda function and pass the device message for processing.

  1. Login to your AWS Account and choose Ireland as the AWS region.

  2. Goto the IAM Management Console. Click on the Roles menu item in the left and then click on the Create role button.

    Create Role

  3. Select IoT as the AWS Service. Click the Next: Permissions button.

    IoT Role

  4. On the next screen, click on the Next: Tags button.

  5. On the next screen, click on the Next: Review button.

  6. On the next screen, enter the Role name as dojoiotrole and click on the Create role button.

    Role Finish

  7. The role is created in no time. Open the dojoiotrole details and add AWSLambdaRole policy for the permissions along with the existing three policies.

    Role Finish

  8. You can now move to the next task which will register the device as the thing in the AWS IoT Core.