I have a Teltonika RUT956 acting as an MQTT broker. I have a data logger connected to the RUT956 LAN port and publishing MQTT messages to the Teltonika broker.
Let’s say the first part of my topic is:
The next thing I created is a MQTT Bridge in RUT956. The bridge connection name is AWSIoT. Inside the bridge, I added an outgoing topic with a filter X1234/#.
I can see in my AWS IoT logs that the bridge is sending the MQTT messages to the AWS IoT broker.
Now here is the problem.
If I create an AWS IoT Thing Policy which allows all actions and resources, then it works fine, but this is not good security. If I try to restrict the policy it stops working, because the iot:Connect action does not allow wildcards unless the Thing Name in AWS matches the Client ID coming from the Teltonika.
The Teltonika router automatically creates the client ID in the format of .. In other words, for example, RUT956.AWSIoT.
The problem is that AWS Thing names are not allowed to have a full stop (.) in the name. They can only contain letters, numbers, hyphens, colons and underscores.
Can you please release a firmware where the Client ID is configurable for the bridge or the client ID is created using an underscore? For example: RUT956_AWSIoT
Please let me know if this is possible, otherwise it is impossible to use Teltonika MQTT Bridge with AWS IoT without a very bad security policy.