Prepare Amazon Web Service Broker Connection

A short description on establishing a connection to an AWS broker.

This guide describes the necessary steps to configure and establish a connection between the MQTT Publisher and an () broker. The description assumes sufficient knowlegde on setting up your own AWS broker and the proper selection of the required web services.

  1. Setup your AWS web service. An introductory tutorial can be found, e.g. here: https://www.youtube.com/watch?v=6w9a6y_-T2o
  2. Download the necessary connection information for your web service from the AWS platform and place them in a (temporary) working directory.
  3. Unzip the downloaded connect_device_package.zip containing the connection information.
    unzip connection_device_package.zip
  4. Set the proper permissions to run the downloaded files
    Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
    Note: In some cases it might help to run the command Get-ExecutionPolicy -List after setting the permissions.
  5. Run the starting script start.ps1 to create and download all necessary certificates.
    .\start.ps1
    The files created during this step will then be used within WinCC OA.
  6. Add the host name and port into your MQTT Publisher Connection configuration.
    Note: The host name used within this step can either be received from AWS or from within the start.ps1 script.
    Note: The default port for TLS is 8883.
  7. Set the ClientID, provided by the AWS configuration, within the Advanced panel.
  8. Add the previously created certificates within the Certificate configuration of the MQTT Publisher.
After following the steps described above the MQTT Publisher should be able to connect to your AWS broker.