Skip to content

Installation Guide: Step 4

Rohit Rathi edited this page Sep 17, 2018 · 1 revision

Additional AWS Setup

Note: You must be an admin IAM user for writing roles and pushing it to AWS.

For writing rules on the platform you need to do additional setup on AWS.

  1. For creating rules that interact with other services such as SNS, DynamoDB, AWS IoT & AWS Lambda. This is required for writing rules for storing data in DynamoDB, sending notifications with SNS, invoking lambda functions, actuators to AWS IoT etc.
    1. Create an IAM role for AWS IoT. A role grants a service like IoT, the right to access other services.
    2. Give permissions to the roles by attaching policies (AWS IoTFullAccess policy, SNS Full Access policy, DynamoDB policy).
    3. Put the ARN of this role into configset table as IoTRoleARN.
  2. Create three DynamoDB tables to hold corresponding data
    1. NotificationDetail
      • primaryPartitionKey: ruleName (String)
    2. ThingDB
      • primarySortKey: timestamp (Number)
    3. actuatorStates
      • primarySortKey: ruleName (String)
  3. For creating CRON rules
    1. Create a Lambda function and put it's ARN into configset as a value to the key lambdaCronArn.
    2. Assign it a role with policies that give it access to AWS IoT, DynamoDB and SNS.
  4. For using notification service
    1. Create a Lambda function and put it's ARN into configset as a value to the key lambdaNotificationArn.
    2. Assign it a role with policies that give it access to AWS IoT, DynamoDB and SNS.
  5. For using actuators
    1. Create a Lambda function and put it's ARN into configset as a value to the key lambdaActuatorArn.
    2. Assign it a role with policies that give it access to AWS IoT, DynamoDB and SNS.