Settings for MQTT Connection with AWS IoT Core
This page explains the settings needed to connect an OMRON NX/NJ series PLC to AWS IoT Core via MQTT. It explains in order from creating an AWS account to setting up an IoT Core policy, issuing a certificate and attaching the policy.
Overview
Prepare to connect the PLC via MQTT to IoT Core on Amazon Web Services (AWS Cloud)
- Create an AWS account
- Create a policy
- Create a certificate
- Attach the certificate and policy
Step 1: Create an AWS Account
1-1. Create an account
Create an AWS account
https://portal.aws.amazon.com/billing/signup#/start
For connection tests and checking functions, the free tier should be enough
Step 2: Create a Policy
2-1. Open IoT Core
Sign in to AWS
Then open [Services] in the menu and open [IoT Core] under [IoT]
2-2. Open Policies
Select [Policies] under [Security] in the left tree
Then press the [Create policy] button to show the policy creation form
2-2. Create a policy
- Policy name (any)
- Policy action = *
- Policy resource = *
Enter the above and press the [Create] button
Here the policy action and policy resource are set loosely, but in practice set them to match your actual operation
Step 3: Create a Certificate
3-1. Add a certificate
Select [Certificates] under [Security] in the left tree
Then press the [Add certificate] button to show the creation form
3-2. Create a certificate
Set the certificate status to Active and press the [Create] button
3-3. Download the certificate and keys
Download the device certificate, public key file and private key file
The downloaded files go into the Downloads folder on the PC
Step 4: Attach the Certificate and Policy
Click the added certificate to show its information
Press the [Attach policy] button near the bottom, select the policy created in step 2 and [Attach policy]
This completes the AWS preparation
To connect with the PLC, see Connecting to AWS IoT Core via MQTT


