Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Setup API Key

...

Niagara needs an api API key to access AWS IoT Services and manage devices:

  1. Go to the IAM
  2.  page
  3. service on
  4. the 
  5. the AWS console.

    Image Modified


  6. Then Users

    Image Modified


  7. Click
  8.  Add User
  9. the Add Users button


    Image Modified

  10. Give
  11. your 
  12. a username to your user, then click next.

    Image Modified


  13. Then Attach policies directly, Then hit Create policy. A new tab will open.

    Image Modified


  14.  Select the Iot service

    Image Modified


  15. Allow All IoT actions

    Image Modified
  16. Allow All resources, then hit Next

    Image Modified
  17. Then hit Next.
  18. Give your policy a name, make sure that you have full access on the summary. finally hit Create policy

  19. Now go back to the "Add user" page hit hit refresh (top right), look for your policy on the search field, select it and click Next.



  20. Add tags (optional). Then hit hit Next
  21. Finally hit Create User
  22. Your User was successfully created. Click on View user 



  23. Go in the Security credentials Tab and create an access key

    Image Modified

  24. Select Third-party service, check the "I understand..." checkbox and click Next


    Image Modified

  25. Click on Create access key

    Image Modified

  26. Retrieve you access Access keys (either copy paste your values or download the .csv file). Keep them they will be needed to setup the connector in your workbench



Setup Devices certificates

...

To create a key pair and a certificate follow these steps:

  1. Go to the IAM service on the AWS console.

    Image AddedOn services, Go to IoT Core Service
    Image Removed


  2. Then secure → Certificates
    Image Removed
    Image Added

  3. On the top right corner hit CreateAdd certificate.
    Image Removed
    Then 
    Image Added


  4. Then Select Auto-generate new certificate, select Active and hit Create

    Image AddedCreate Certificate
    Image Removed

  5. Download the certificate, the public key (optional) , and the private key and the AWS CA certificate, 
    Image RemovedImage Removed
    Then Activate the certificate, Then hit Done.

    Image Added


  6. Now go to to Security > Policies and hit Create Policy
    Image Removed

    Image Added


  7. Give your policy a name. on action type "iot:*" . on resource ARN type "*". Then check Allow on Effect
    select the "Allow" policy effect, and put "*" in the policy action and policy resource. Then hit Create

    Image AddedImage Removed

  8. Go back to certificates. Choose the certificate you created earlier (check the date).

    Image AddedImage Removed


  9. Under Actions select Attach policy
    Image Removed
    Image Added


  10. Select your policy then hit Attach.
    Image Removed

    Image Added


  11. Now note down your certificate ARN, we will need it later.
    Image Removed

    Image Added

  12. You will need one last thing: the AWS CA key file, you can download it here.

Recap

...

Let's recap, after all theses steps you should have 6 things:

...