Skip to main content
Version: 5.5

MQTT Cloud Profile: AWS IoT

This chapter describes the additional “AWS” tab of the MQTT plug-in. All general MQTT settings (standard profile) can be found under MQTT Plug-in Configuration.

Principle: The AWS tab supplements the standard configuration with fields for endpoint and client certificates. The other tabs (Connection settings, Storage, First Will, Last Will, Advanced) are configured as in the standard profile.


Tab: AWS

MQTT – Tab AWS
FieldDescription
API endpoint addressREST API endpoint of the AWS IoT object (Thing). You can find the value in AWS IoT under Manage → Things → (Your Thing) → Interact.
Import new certificateImports a new client certificate with associated private key into the OPC Router’s certificate management.
CertificateFile selection for the device certificate (*.crt / *.pem).
Private key fileFile selection for the private key (*.key).
Select existing certificateUses a previously imported client certificate from certificate management.
Client certificateSelection of the client certificate to be used (or Without).
Check connectionChecks the connection with the currently set values.
Note

The link note in the dialog leads directly to the [Knowledge Base article]. In AWS IoT, you can find the API endpoint on the Interact page of the selected thing.


Prerequisites in AWS IoT Core

  1. Create thing: Manage → ThingsRegister a thingCreate a single thing and name it.
  2. Create/activate certificates: Create certificate → Download certificate (CRT/PEM) and private key (KEY)Activate.
  3. Create and assign policy: Secure → Policies → Create policy (e.g., iot:* to * as starting point) and Attach the policy to the certificate.

The exact policy should correspond to your security concept. Restrict actions/ARNs as far as possible.


Manage certificates in OPC Router

  1. Import certificate: Tools → Settings → Certificate Management → Client Certificates → Import.
  2. Assign private key: Select imported certificate → Add private key → Select KEY file.
  3. Check certificate: Check display in certificate list.

Configuration in the MQTT plug-in (AWS tab)

  1. Open Plug-ins → MQTT and create/edit an MQTT connection.
  2. Router settings: Assign a name, select Cloud profile: AWS.
  3. AWS:
  • Enter API endpoint address (copied from Interact).

  • Select Select existing certificate or use Import new certificate and specify the certificate + key.

    • Run Check connection.
  1. Connection settings / First Will / Last Will / Advanced: Configure as required (as in the standard profile).
  2. Save with OK.

Typical settings / notes

  • Port & TLS: AWS IoT uses TLS; Enable TLS/SSL should be active in Connection settings.
  • Client ID: Use placeholders for parallel instances (e. g. MyInstance-${hostname}-#[RAND:4]).
  • QoS: See MQTT Performance for effects on latency and execution time.
  • Storage: For “last value” queries, enable MQTT Data Storage and define the desired patterns. Read about MQTT Storage Read Transfer Object.

Troubleshooting

SymptomCause / Solution
Handshake/Authentication failedCertificate/key not imported correctly or wrong certificate selected. Check certificate management and re-import if necessary.
Access deniedPolicy missing or too restrictive. Check in AWS IoT under Secure → Policies and Attach to the certificate.
No route to host / TimeoutEndpoint incorrect, port/firewall blocked or TLS disabled. Recopy endpoint from Interact, check TLS/port.
Duplicate Client IDMultiple instances with the same client ID. Use a placeholder or Random.

See also