We have a prototype with the Shadows example from freertos that interacts with an aws iot object.
A lambda function is also linked to said object and using an Alexa skill, various output terminals of the microcontroller can be activated.
Now if I want to make several devices, each one with its microcontroller, so that only one skill works for any device, it must send some kind of identification to the lambda function, so that it decides with which object to interact.
From what little I have managed to understand, for the skill to send some type of identification to the lambda function, it implies that our device must be registered in ALEXA AVS where you are provided with an Amazon ID and an Alexa Gadget Secret ID.
My question is: Who should own the above mentioned IDs?
If it is the microcontroller, it should interact with the alexa skill without intervention from the lambda function.
If it is the lambda function, this is who would have the mentioned IDs in its code and based on those it decides with which object to interact.
Please, any ideas or suggestions. Thanks