I am connecting AWS IoT things via Rest APIs using End points from AWS lambda. But now i want to make it dynamic, i.e. for each different user requesting from alexa, i want to request APIs of corresponding AWS-IoT account. I am assuming there will be different AWS-IoT account for each user, as every user can have a thing named water pump.
I can do so by making one lambda per user. But i want to do it by a common lambda function