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.
- Setup your AWS web service. An introductory tutorial can be found, e.g. here: https://www.youtube.com/watch?v=6w9a6y_-T2o
- Download the necessary connection information for your web service from the AWS platform and place them in a (temporary) working directory.
-
Unzip the downloaded connect_device_package.zip containing the connection information.
unzip connection_device_package.zip
-
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 commandGet-ExecutionPolicy -List
after setting the permissions. -
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. -
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.
- Set the ClientID, provided by the AWS configuration, within the Advanced panel.
- Add the previously created certificates within the Certificate configuration of the MQTT Publisher.