node-red
aws-iot
enebular

Adding AWS IoT keys into Enebular

In this blog post, we are going to learn how to deploy flows using enebular.com on enebular-runtime-agents.

Installed enebular-runtime-agent on the device you want to deploy the flow? If no, quickly install it using the link, https://qiita.com/BSatyaKishore/items/3ee6cf9d5ad89310855d

STEP 1: Setting up on enebular.com
- Goto enebular.com. And sign in or sign up if needed and then sign in. Screen Shot 2018-02-16 at 10.55.43.png
- You'll see something similar to this. Screen Shot 2018-02-16 at 10.56.38.png
- Then click on Projects. You'll see something similar to this. Screen Shot 2018-02-16 at 10.58.21.png
- Click on Create Project. And enter the name of your project. You'll see something similar to this. Screen Shot 2018-02-16 at 10.58.33.png
- Click on Submit. Something like below should appear. Screen Shot 2018-02-16 at 10.59.06.png
- Click on Flow in the left panel. Screen Shot 2018-02-16 at 10.59.06.png
- Click on + in the bottom right*. You should see something like this. Fill out that pop-up. And click **Continue* Screen Shot 2018-02-16 at 10.59.27.png
- You should see something similar to this. Screen Shot 2018-02-16 at 11.00.09.png

STEP-2: Creating a flow on enebular.

  • Click on Edit Flow. A new tab should open and you should see something similar to this. Screen Shot 2018-02-16 at 11.00.37.png
  • Use the nodes in the left panel to create flows. As an example, I created a simple flow as below. Screen Shot 2018-02-16 at 11.00.59.png
  • The Deploy button on the top right appears red. It means there are unsaved changes in the flow. Click on this Deploy button. It should change it's color to grey, which means all changes are saved on enebular.com Screen Shot 2018-02-16 at 11.01.09.png
  • Now, close this tab and go to the tab from where you got here. Refresh it. You should some text in the grey area. Screen Shot 2018-02-16 at 11.01.22.png

STEP-3: Getting Deploy Keys from AWS-IoT
- Open IAM console on amazon AWS. Screen Shot 2018-02-16 at 10.42.14.png
- In the left panel click on Users. You should see something like this. Screen Shot 2018-02-16 at 10.45.50.png
- Click on Add User Screen Shot 2018-02-16 at 10.46.09.png
- You should see something like this. Fill with a User name and make sure that Access type* is set to Programmatic access. And Click on Next: Permissions. Screen Shot 2018-02-16 at 10.46.29.png
- It should appear something like this, Click on Attach existing policies directly Screen Shot 2018-02-16 at 10.47.01.png
- In the search bar, search for AWSIoTFullAccess select it. Screen Shot 2018-02-16 at 10.47.17.png
- Click on Next: ReviewScreen Shot 2018-02-16 at 10.47.33.png
- Click on Create User. Screen Shot 2018-02-16 at 10.47.44.png
- You should see something like this. Copy these keys. And save it for further usage in adding devices on enebular.com. Screen Shot 2018-02-16 at 10.48.29.png
- Copy those keys and end-point url which we got in the https://qiita.com/BSatyaKishore/items/3ee6cf9d5ad89310855d.

STEP-4: Adding these keys on enebular.com

  • You were here. Click on Deploy on the top panel. Screen Shot 2018-02-16 at 11.01.22.png
  • You should see something similar to this. Click on Deploy button on the right. Screen Shot 2018-02-16 at 11.01.31.png
  • You should see thing like this. Select AWS IoT in the connection type.Screen Shot 2018-02-16 at 11.43.07.png
  • You should see something like these. Click on NewScreen Shot 2018-02-16 at 11.43.23.png
  • Fill the details which we obtained using STEP-3. Region is available on AWS IoT EndPoint URL between 'iot.' and 'amazonaws'. Fill it and click on SaveScreen Shot 2018-02-16 at 11.45.12.png
  • You should see all your things like this. Screen Shot 2018-02-16 at 11.45.52.png
  • Select Test and click Deploy. You should see something like this. And your flow will be deployed on the device. Congratulations Screen Shot 2018-02-16 at 11.54.54.png

STEP-MISC: Deploying after setting up.
- Your Deploy screen should appear like this after you setup. Click on Deploy button. Screen Shot 2018-02-16 at 11.55.06.png
- Something like this will appear. Select AWS Iot. Screen Shot 2018-02-16 at 11.46.09.png
- Wait for a moment. You should be able to select your connection in the new list.
Screen Shot 2018-02-16 at 11.45.52.png
- Select your thing and click Deploy. You flow will be deployed on your thing. Screen Shot 2018-02-16 at 11.54.42.png