alexa-js / alexa-app-server

An Alexa app server for alexa-app.
MIT License
401 stars 116 forks source link

Express on Lambda as a proxy between Alexa and localhost alexa-app-server #89

Closed benedekh closed 7 years ago

benedekh commented 7 years ago

It is a rather off-topic question, but is it possible to deploy an Express server on Lambda that forwards the requests from Alexa to my webserver? Basically I just would like to use Lambda as a proxy between my computer (that has an alexa-app-server running but without HTTPS) and Amazon Voice Service.

dblock commented 7 years ago

Express runs 24/7 so I don't think it can work on Lambda as that is per request AFAIK.

benedekh commented 7 years ago

What I meant was, I can deploy a website on Lambda using aws-serverless-express and that would forward the request to my skill. My question referred to this, if it is possible or due to some limitations by AWS / Alexa not.

dblock commented 7 years ago

Oh I've never used aws-serverless-express, it wasn't clear that you're trying to use that. I would say there's no reason why alexa-app wouldn't work with that, however alexa-app-server has a dependency on express proper. It's possible that it "just works" against aws-serverless-express, and if it does we should maybe figure out how to make the express part swappable here. PRs welcome.

muneerkk66 commented 7 years ago

I have successfully link the user in my own system. The access token which i'am getting from lambda function and the token which i got from after user authorisation is different. Do you have any idea about this.