Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Hubot run in AWS Lambda? #1204

Closed
EugeneLiang opened this issue Jun 16, 2016 · 3 comments
Closed

Can Hubot run in AWS Lambda? #1204

EugeneLiang opened this issue Jun 16, 2016 · 3 comments
Labels

Comments

@EugeneLiang
Copy link

Hi there!

Awesome job with Hubot, was playing around and it feels really cool.

Here's a newbie question: may I know how I can run a Hubot in AWS Lambda?
Do I package the hubot-script as per the instructions from AWS Lambda ( http://docs.aws.amazon.com/lambda/latest/dg/nodejs-create-deployment-pkg.html ) ?

Thanks!

@wilrnh
Copy link

wilrnh commented Jun 29, 2016

Thought of the same thing, and just came across:

http://stackoverflow.com/questions/37872640/deploy-hubot-on-aws-lambda

@davidlinse
Copy link

No reaction for a descent amount of time.. Any news on this ?

@technicalpickles
Copy link
Member

Not as it exists now, unfortunately.

One difficulty in doing this is similar to what is described in #613 . Basically, hubot would need to be able to start up, process one message, and then exit. Currently, hubot doesn't have anyway to signal the completion of a message being processed. There is some talk of adopting Promises in hubot (#1338), and if that was widely applied to the code base, could be one way.

The other part of it I think is that there'd need to be an adapter for lambda, that is, receiving a message from it. You'd also probably need some sort of proxy that is connected to a real chat thing, that then sends messages for the lambafied hubot to then process, and then have a way to send messages back to chat.

If anyone is interested in implementing this, I'd suggest checking out the new Hubot Evolution we are using to propose, discuss, and accept new features into hubot ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants