amazon web services - I want to access AWS-IoT accounts from a common AWS Lambda -
i connecting aws iot things via rest apis using end points aws lambda. want make dynamic, i.e. each different user requesting alexa, want request apis of corresponding aws-iot account. assuming there different aws-iot account each user, every user can have thing named water pump.
i can making 1 lambda per user. want common lambda function
yes, can , should use single, common lambda of users. each user has unique id created amazon when yoour skill installed on device. each request send lambda contain userid skill can save user's preferences, state, etc.:
{ "version": "string", "session": { "new": true, "sessionid": "string", "application": { "applicationid": "string" }, "attributes": { "string": {} }, "user": { "userid": "string", ...
refer alexa documentation understand each of fields passed in request: json interface reference custom skills.
Comments
Post a Comment