In this tutorial, I’m going to show you how to configure IAM Users on your Amazon Web Services (AWS) account for AWS IoT to allow you to get connected with your IoT device.
Before we start, I will assume that you have an AWS account already, but if not then please create one using the instructions found here.
It’s important to note that there are two types of AWS user accounts:
Login to your AWS Account and go to the IAM console by click on the Services menu at the top of the page:
and then selecting IAM from under Security, Identity, & Compliance:
Once the IAM console has opened, select Users from the nagivation panel on the left. If you need to create a new user, select Add User from the top and follow the instructions, ensuring you select AWS Management Console access when prompted for the access type. Once done, click on the user you want to grant access to AWS IoT:
Under the permissions tab click the Add Permissions button. On the next page, choose Attach existing policies directly:
In the search box search for AWSIoTFullAccess and ensure this is selected:
then search for AmazonFreeRTOSFullAccess and ensure this is also selected – note this doesn’t need to be added if you aren’t using Amazon FreeRTOS:
At the bottom of the page click Next: Review and on the next page we can see the permissions we are granting to our user:
We can then click Add permissions at the bottom of the page.
For more information on AWS policies see IAM Permissions and Policies.
With our IAM user configured with the correct permissions, we can now login with that user. Get your sign in link from the Sign-in credentials section on the Security Credentials tab and use the username and password you setup when you created the IAM user.