Configure the EMQX broker
This section covers how to add usernames and passwords. It also covers how to establish a TLS connection from an external source using the added username and password. You can configure the EMQX broker using Linux or Microsoft Windows.
Note
To configure the broker, you need a core device that is setup with the default EMQX configuration in your MQTT-enabled, V3 gateway.
Important
After completing this procedure, we highly recommend configuring authorization rules. For more information, see Set up authorization rules for AWS IoT SiteWise Edge in EMQX. Authorization rules for added users enhances security.
Update the EMQX deployment configuration for authentication
To update the EMQX deployment configuration for authentication
Navigate to the AWS IoT SiteWise console
. -
In the left navigation, choose Edge gateways in the Edge section.
-
Choose the gateway to configure.
-
In the Edge gateway configuration section, copy your Greengrass core device value. Save it for later use.
-
Open the AWS IoT console
. -
On the left navigation, under the Manage section, choose Greengrass devices, then Deployments.
-
Find the core device value you saved earlier and choose that link to open the deployment.
-
Choose the Actions dropdown button, then Revise.
-
Read the message that appears and then choose Revise deployment. The Specify target page appears.
-
Choose Next until you reach the Configure components step.
-
Select the
aws.greengrass.clientdevices.mqtt.EMQX
radio button. -
Choose the Configure component button. A configuration page appears for the component.
-
Under Configuration update, choose Reset to default configuration for component version: 2.*.*.
-
Enter the following configuration in the Configuration to merge section based on your OS.
-
Choose Confirm.
-
Choose Next until you reach the Review step.
-
Choose Deploy.
-
After the deployment succeeds, proceed to the next step.
Enable username and password authentication
This section shows you how to add usernames and passwords through the EMQX dashboard GUI.
Note
The EMQX-related instructions provided are for reference only. As EMQX
documentation and features may change over time, and we do not maintain
their documentation, we recommend consulting EMQX's official
documentation