You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/applications/device_advisor/running_aws_iot_core_device_advisor_tests.md
+52-7Lines changed: 52 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,25 +6,70 @@ to learn more about the device advisor.
6
6
7
7
## Creating an IoT thing
8
8
9
-
Follow the instructions described in the section listed below to create an IoT thing for your device.
9
+
Follow the instructions described in the section listed below to create an [IoT thing][creating-an-iot-thing-for-your-device], policy, IAM Policy and IAM role
Follow the instructions described in the [page](https://docs.aws.amazon.com/iot/latest/developerguide/device-advisor-setting-up.html#da-iam-role) to create a policy for your IoT thing and then a device advisor role.
12
+
## Setting up IAM Roles and Policies
16
13
17
14
* Create an IAM role to use as your device role.
18
15
* As part of creating the policy, the topic and topic filter shall be assigned a value `*` and the `clientId` should match the IoT thing name.
19
16
* Create a custom-managed policy for an IAM user to use Device Advisor
20
17
* Create an IAM user to use Device Advisor (AWS recommendation)
21
18
19
+
1. Go to the [IAM Dashboard](https://us-east-1.console.aws.amazon.com/iam/home?region=us-west-2#/home).
20
+
2. In the left navigation pane under **Access management** select **Policies**, then click on **Create policy**.
21
+
* Select the `IoT` service, then click on **Next**.
22
+
* Under `IoT`**Actions allowed** select the following: `Connect`, `Publish`, `Subscribe`, `Receive` and
23
+
`RetainPublish`.\
24
+
Under **Resources**: Ether keep it on `All`, or specify the **client**, **topic** and **topicfilter** with
25
+
clicking on **Add ARNs**.
26
+
Make sure that you select the same **Resource region** that you specified when creating your **IoT Thing**,
27
+
or specify it as `*`. You can set the **Resource client** as your **IoT Thing** name or `*`. In the end you should see:
to create a policy for your IoT thing and then a device advisor role.
64
+
22
65
## Creating AWS IoT Core Qualification test suite
23
66
24
67
Follow the instructions described the [page](https://docs.aws.amazon.com/iot/latest/developerguide/device-advisor-console-tutorial.html#device-advisor-console-create-suite)
25
68
to create AWS IoT Core Qualification test suite.
26
69
27
-
The `Trigger Topic` property should be set to the value of `deviceAdvisorTOPIC_FORMAT` macro available at [aws_device_advisor_task.h](../../../applications/helpers/device_advisor/inc/aws_device_advisor_task.h) for `TLS Receive Maximum Size Fragments` test.
70
+
- The `Trigger Topic` property should be set to the value of `deviceAdvisorTOPIC_FORMAT` macro available at [aws_device_advisor_task.h](../../../applications/helpers/device_advisor/inc/aws_device_advisor_task.h) for `TLS Receive Maximum Size Fragments` test.
71
+
- The Device role should be a previously created IAM Role, like: `Proj-device-advisor-role-eu-west-1-any`.
72
+
- **Make sure that this role is also set up for the same region, that your test is using, or any!**
28
73
29
74
## Configuring the application to connect to AWS IoT Core Device Advisor
0 commit comments