Versions Compared

Key

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

...

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

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




  2. Then secure → Certificates



  3. On the top right corner hit Add certificate.




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



  5. Download the certificate, the public key (optional) and the private key




  6. You will also need the AWS CA key file, you can download it here.
  7. Now go to Security > Policies and hit Create Policy





  8. Give your policy a name. select the "Allow" policy effect, and put "*" in the policy action and policy resource. Then hit Create



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




  10. Under Actions select Attach policy




  11. Select your policy then hit Attach.





  12. Now note down your certificate ARN, we will need it later.



API endpoint

...

Finally you will need your API endpoint

To find it follow these steps:

  1. Go to the IoT Core service on the AWS console.

    Image Added

  2. Go to Settings, and copy paste your endpoint

    Image Added 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:

  • The credentials csv file for AWS user that contains the client access id and secret.
  • The certificate file.
  • The private key file.
  • The public key file (optional).
  • The AWS CA key file.
  • The ARN certificate
  • And last but not least the ARN certificateAPI Endpoint

Congrats !!! You finished the AWS setup go to next step:

...