Amazon AWS IoT Core over SSL Integration Guide
Review the following guide to set up an integration between Litmus Edge and AWS IoT Core with SSL authentication.
Before You Begin
You must have an AWS account with the appropriate user privileges.
Set Up Integration in AWS
Step 1: Onboard Device
To onboard a device:
- Open the AWS IoT browser tab and click Manage > Things. The Things pane appears.
- From the Choose a platform section, select Linux/OSX.
- Click Done. The named Thing1 appears in the Things pane.
Step 2: Create Policy
To create the policy:
- From the left pane in the AWS Things pane, click Secure > Policies.
Step 3: Create and Download Certificate and Private Key
You will need to download the certificate and private key that you will use to configure the AWS connector in Step 8.
To create and download the certificate and private key:
- Click the Actions icon for the certificate, and select Delete. The Confirmation dialog box appears.
- Click Yes, continue with delete.
- Click Download next to A certificate for this thing.
- Click Download next to A private key.
- Click Keep next to the downloaded files.
Step 4: Edit Policy
To edit the policy:
- From the left pane, click Policies. The Policies pane appears.
- Click Save as new version.
- Click the Back arrow to return to the Policies pane.
Set Up Integration in Litmus Edge
After setting up your AWS account, you will need to log in to Litmus Edge to complete the steps below and complete the integration.
Step 5: Add Device
Follow the steps to Connect a DeviceConnect a Device. The device will be used to store tags that will be eventually used to create outbound topics in the connector. Make sure to select the Enable Data Store checkbox.
Step 6: Add Tag to Device
After connecting the device in Litmus Edge, you can Add TagsAdd Tags to the device. Create tags that you want to use to create outbound topics for the connector.
Step 7: Retrieve Parameters for AWS Connector
You will have to log in to your AWS account to retrieve the parameters for the AWS connector.
To retrieve the parameters:
- Log in to your AWS account.
- Open the AWS IoT browser tab and click Manage > Things. The Things pane appears.
- Click Thing[#]. The Thing[#} dialog box appears.
- From the left pane, click Interact. The pane changes to reflect your selection.
- Copy the REST API Endpoint under the HTTPS section. This is the Hostname parameter for the AWS connector.
- Click Secure > Policies. The Policies pane appears.
- Click Thing[#]-Policy. The Thing[#]-Policy dialog box appears.
Step 8: Add AWS IoT Core Connector
Follow the steps to Add a Connector and select the MQTT - Amazon AWS IoT Core over SSL provider.
Configure the following parameters.
- Name: Enter a name for the connector.
- Hostname: Paste the REST API Endpoint value copied in Step 6.
- Port: Enter the MQTT broker port. The default value is 8883.
- Certificate: Paste the downloaded certificate in Step 3.
- Private key: Paste the downloaded private key in Step 3.
- Client ID: Paste the SDK resource copied in Step 6.
- QoS: Confirm that the default value 0 is entered. The Quality of Service (QoS) level is an agreement between the sender of a message and the receiver of a message that defines the guarantee of delivery for a specific message.
- Parallel Publish Count: The number of messages being published simultaneously. Once the defined limit has been reached, subsequent messages are silently dropped. The default value is 100.
- Integration Topic: Paste the topic value copied in Step 6.
- LWT topic: The topic for Last Will and Testament feature of MQTT.
- LWT payload: The payload for Last Will and Testament feature of MQTT.
- LWT payload type: The payload type for MQTT's Last Will and Testament feature. The options are string and base64.
- LWT QoS: The Quality of Service value for MQTT's Last Will and Testament feature.
- LWT retained: Select this check box to retain the value for MQTT's Last Will and Testament feature.
- Throttling limit: The maximum number of messages per second to be processed. The default value is zero, which means that there is no limit.
- Persistent storage: When enabled, this will cause messages to undergo a store-and-forward procedure. Messages will be stored within Litmus Edge when cloud providers are online.
- Queue Mode: Select the queue mode as lifo (last in first out) or fifo (first in first out). Selecting lifo means that the last data entry is processed first, and selecting fifo means the first data entry is processed first.
Step 9: Enable the Connector
After adding the connector, click the toggle in the connector tile to enable it.

If you see a Failed status, you can review the Connector Logs and relevant error messages.
Step 10: Create Topics for Connector
You will now need to create topics for the connector. To create outbound topics, you have the option of importing the tag created in Step 6. To create inbound topics, you will have to manually create the topic.
Create Outbound Topics
To create outbound topics:
- Click the connector tile. The connector Dashboard appears.
- Click the Topics tab.
- Click the Import from DeviceHub tags icon.
The DeviceHub Import dialog box appears.

- Select all the tags to import and click Import.
Create Inbound Topics
Before creating inbound topics, copy the Raw Topic for tags that you want used for topics. See Manage TagsManage Tags for more information.
To create inbound topics:
- Click the connector tile.
- Click the Topics tab.
- Click the Add a new subscription icon.
The Data Integration dialog box appears.

- Configure the following parameters.
- Data Direction: Select Remote to Local - Inbound.
- Local Data Topic: Paste the Raw Topic copied for the device tag.
- Remote Data Topic: Confirm the topic where the data is pushed.
- Enable: Select the toggle to enable the topic.
- Click Yes to add the topic.
Step 11: Enable Topics
Ensure the topics you imported are enabled by returning to the Topics tab and clicking the Enable all topics icon.

Step 12: Verify Outbound Messages
You will need to log in to your AWS account to verify that outbound messages are being sent.
To verify outbound messages:
- Log in to your AWS account.
- Navigate to the AWS Things pane and click Monitor. The Monitor pane appears.
- Select Hour from the Time range drop-down list. The charts change to reflect your selection.
- Click the browser Refresh to refresh the page. The Successful connections chart shows a connection.
- Scroll down to the Messages published chart. The Messages published chart shows messages arriving.
Step 13: View Outbound Messages in Litmus Edge Flow
You can create a flow in Litmus Edge to view the outbound messages.
To create a flow:
- DataHub Subscribe
- Debug
- Double-click the DataHub Subscribe node. The Edit DataHub Subscribe node dialog box appears.
- Paste the local topic you created in Step 9.
- If needed, configure the Datahub Subscribe connection. See the "Step 3: Configure Connector Nodes" section in Create a Flow to learn more.
- Click Done, and then click Deploy.
- Click the debug tab. See the Additional Options section in Manage the Flow Canvas for more details.
- Verify that Test Message appears in the debug results.
You can return to AWS Monitor browser tab and view the Messages published chart to see the outbound messages are being sent.


















