Is your feature improvement request related to a problem? Please describe.
In a container deployment and using the built-in bridge feature, it should be possible to run two instances of the tedge-mapper to connect to two different Cumulocity IoT instance where both mappers are connected to the same local MQTT broker.
This is stage 1 of a 2 stage process to support connecting multiple instances of the same mapper type (e.g. n x c8y/aws/az) to two different cloud instances. The first stage assumes that two independent tedge-mapper-<cloud> instances can run in different connections to provide an isolated environment for both settings and certificates.
Describe the solution you'd like
The following items needs to be changed in order to support multiple connections to clouds of the same type, however a full running demo should be used to check that there are no other changes required.
Add new config to support configurable topic prefixes for Azure and AWS
az.bridge.topic_prefix
aws.bridge.topic_prefix
te/ commands should use the c8y.bridge.topic_prefix setting when generating the command id which is used to associate a te/ command to a specific mapper instance
For example, the following code shows that the c8y-mapper command id is hardcoded instead of using the c8y.bridge.topic_prefix configuration value.
Is your feature improvement request related to a problem? Please describe.
In a container deployment and using the built-in bridge feature, it should be possible to run two instances of the tedge-mapper to connect to two different Cumulocity IoT instance where both mappers are connected to the same local MQTT broker.
This is stage 1 of a 2 stage process to support connecting multiple instances of the same mapper type (e.g. n x c8y/aws/az) to two different cloud instances. The first stage assumes that two independent
tedge-mapper-<cloud>
instances can run in different connections to provide an isolated environment for both settings and certificates.Describe the solution you'd like
The following items needs to be changed in order to support multiple connections to clouds of the same type, however a full running demo should be used to check that there are no other changes required.
Add new config to support configurable topic prefixes for Azure and AWS
az.bridge.topic_prefix
aws.bridge.topic_prefix
te/
commands should use thec8y.bridge.topic_prefix
setting when generating the command id which is used to associate ate/
command to a specific mapper instanceFor example, the following code shows that the
c8y-mapper
command id is hardcoded instead of using thec8y.bridge.topic_prefix
configuration value.let topic_name = if cmd_id.starts_with("c8y-mapper") {
After the code change, a command instance in the
/cmd/
topic should follow the below pattern:Describe alternatives you've considered
Additional context