5.1.3
Create Policy and Role for JITR
Just-In-Time Registration (JITR) allows the user to register a device at the time of connection. JITR
reduces the manufacturing burden of registering a device with AWS before it is connected. In later steps,
create a Lambda function that is responsible for registering new devices. The following are the steps to
create a custom policy and role that is used by the JITR Lambda function:
Create Policy
To create policy, perform the following steps:
1.
https://console.aws.amazon.com/iam
.
2.
Click “Policies”.
3.
From the Policies page, click
Create Policy
.
Figure 5-9. Policy Creation
1
2
4.
Select
JSON
. Copy and paste the following code and click
Review Policy
.
Figure 5-10. Policy Review
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iot:UpdateCertificate",
"iot:CreatePolicy",
"iot:AttachPrincipalPolicy",
"iot:CreateThing",
"iot:CreateThingType",
"iot:DescribeCertificate",
"iot:DescribeCaCertificate",
"iot:DescribeThing",
"iot:DescribeThingType",
"iot:GetPolicy"
"iot:CreateThingGroup",
"iot:AddThingToThingGroup"
],
"Resource": "*"
}
]
}
ATWINC15x0 Smart Device Kit
AWS Setup
©
2019 Microchip Technology Inc.
User Guide
DS50002885A-page 30