Page History
...
Setup API Key
...
Niagara needs an api API key to access AWS IoT Services and manage devices:
- Go to the IAM page
- service on the
- the AWS console.
- Then Users
- Click Add User
- the Add Users button
- Give your
- a username to your user, then click next.
- Then Attach policies directly, Then hit Create policy. A new tab will open.
- Select the Iot service
- Allow All IoT actions
- Allow All resources, then hit Next
- Then hit Next.
- Give your policy a name, make sure that you have full access on the summary. finally hit Create policy
- 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.
- Add tags (optional). Then hit hit Next
- Finally hit Create User.
- Your User was successfully created. Click on View user
- Go in the Security credentials Tab and create an access key
- Select Third-party service, check the "I understand..." checkbox and click Next
- Click on Create access key
- 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:
- Go to the IAM service on the AWS console.
On services, Go to IoT Core Service - Then secure → Certificates
- On the top right corner hit CreateAdd certificate.
Then - Then Select Auto-generate new certificate, select Active and hit Create
Create Certificate - Download the certificate, the public key (optional) , and the private key and the AWS CA certificate,
Then Activate the certificate, Then hit Done. - Now go to to Security > Policies and hit Create Policy
- 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 - Go back to certificates. Choose the certificate you created earlier (check the date).
- Under Actions select Attach policy
- Select your policy then hit Attach.
- Now note down your certificate ARN, we will need it later.
- 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:
...