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
MCU8MASS-256:Added a modified JSON policy file and updated the tutorial to reflect the provitioning tool changes.;MCU8MASS-256:Improved instructions for updating policy document.;MCU8MASS-256:Minor text update.;MCU8MASS-256:Replaced hardcoded resource ID with placeholder.;
Copy file name to clipboardExpand all lines: your-first-application-sending-and-receiving-data/README.md
+45Lines changed: 45 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ Links to software and other useful tools and guides are provided in the [Resourc
26
26
-[Table of Contents](#table-of-contents)
27
27
-[A Brief Introduction to the Firmware of the IoT Boards](#a-brief-introduction-to-the-firmware-of-the-iot-boards)
28
28
-[Implementing the Example Application](#implementing-the-example-application)
29
+
-[Step 0: Update the AWS IoT Core Policy](#step-0-update-the-aws-iot-core-policy)
29
30
-[Step 1: Start With an Unmodified Version of the Github Project](#step-1-start-with-an-unmodified-version-of-the-github-project)
30
31
-[Step 2: Sending MQTT Messages to the Cloud](#step-2-sending-mqtt-messages-to-the-cloud)
31
32
-[Procedures for AVR-IoT Boards](#procedures-for-avr-iot-boards)
@@ -62,6 +63,50 @@ In this example, we will demonstrate how devices can be configured to send and r
62
63
63
64

64
65
66
+
### Step 0: Update the AWS IoT Core Policy
67
+
In the [previous tutorial](../connect-the-board-to-your-aws-account), we provisioned the IoT boards using the [IoT Provisioning Tool](http://www.microchip.com/mymicrochip/filehandler.aspx?ddocname=en1001525). This generated an AWS IoT Core Policy that determines which permissions the boards have when they interact with AWS resources. By default, this policy is configured to only grant an IoT board the right to publish and subscribe to MQTT topics containing the board's thing name.
68
+
69
+
In this tutorial, we will send and receive MQTT messages over the `buttonPresses` topic. We must, therefore, expand the permissions to also include this topic:
70
+
71
+
1. Open the [IoT Core](https://us-east-2.console.aws.amazon.com/iot/home) module in AWS and select **Secure -> Policies** in the menu on the left-hand side.
72
+
2. Open **zt_policy** and scroll down to the **Policy document** section.
73
+
3. Click **Edit policy document** and perform the changes described below.
74
+
1. Update the `iot:Publish` and `iot:Receive` permissions to include the `buttonPresses` topic, as shown below. Note that `############` in the code below is a placeholder for your unique AWS resource identifier. Remember to replace this with the identifier found in your original policy document.
2. Update the `iot:Subscribe` permissions to include the `buttonPresses` topic, as shown below. Replace `############` with the identifier found in your original policy document.
0 commit comments