Register device to AWS IoT - renesas/amazon-freertos GitHub Wiki

Get an AWS account

Log in to the AWS Management Console

Move to IoT Core Control Panel

  • AWS services -> All services -> IoT Core

Create a security policy

  • Secure -> Policies -> Create a policy

  • Enter the name (arbitrary character string) -> Advanced mode

  • Copy the code below
{
	"Version": "2012-10-17",
	"Statement":
	[
		{
			"Effect": "Allow",
			"Action": "iot:Connect",
			"Resource": "*"
		},
		{
			"Effect": "Allow",
			"Action": "iot:Publish",
			"Resource": "*"
		},
		{
			"Effect": "Allow",
			"Action": "iot:Subscribe",
			"Resource": "*"
		},
		{
			"Effect": "Allow",
			"Action": "iot:Receive",
			"Resource": "*"
		}
	]
}
  • Paste the copied code into the policy syntax -> Create

Register your device (thing) with AWS IoT

  • Manage -> Things -> Register a thing

  • Creating AWS IoT things -> Create a single thing

  • Add your device to the thing registry -> Name (arbitrary name) -> Next
  • Make a note of the name with a text editor (will be used later)

  • Add a certificate for your thing -> Create certificate -> Download A certificate for this thing/A public key/A private key

  • Be sure to download A certificate for this thing/A public key/A private key here
  • Push the Activate button

  • Add a policy for your thing

Check AWS IoT endpoints

  • Make a note of the endpoint in a text editor etc. (will be used later)