-
Notifications
You must be signed in to change notification settings - Fork 399
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
Add documentation and example of AWSLambdaReceiver #815
Comments
I tried to use the AWSLambdaReceiver as my App doesn't need Express, but would benefit from snappier Lambda loading times. I banged my head with "TypeError: AwsLambdaReceiver is not a constructor" for some time as I was upgrading from Bolt 2.7.0 to 3.2.0 at the same time, and thought the error might be related. Finally I realized 3.2.0 doesn't include the compiled code for AWSLambdaReceiver yet. Would it be possible to have AWSLambdaReceiver included in the next public release even though it's not been documented yet? Best, |
Hey @aplathan, I'm sorry to hear that you put time into upgrading only to realize that we hadn't released it yet! :( We've now released Bolt 3.3.0 which includes the Feel free to give it a shot! I'd love to hear what you think. Once we're confident in it, we'll also look into updating the Lambda Deployment guide to give everyone a snappier experience. ✨ |
Hey @mwbrooks, I just gave the |
@TheManWhoStaresAtCode did you do anything special to set this up? I tried and I keep getting I know it is executing the code because that error is in this bolt code for the PR that added the Edit:
Example: |
I found the documentation that indicates that headers are lower cased. One added detail is that we are using http api vs Rest API on AWS API Gateway. |
@JSSAggie Thanks for pointing this out. I will create a new issue for it and the bug will be fixed in the next version. |
@TheManWhoStaresAtCode Thanks for sharing this. If I remember correctly, I also didn't see the warnings when I deployed my lambda functions with the receiver. Thanks for the info! > proxy mode for the lambda |
* add example how to use AWSLambdaReceiver (#815) * replace existing example for AWS deployment with the one of the AwsLambdaReceiver (#815) * update the documentation to match with the updated example (#815) * Update the receiver name to be consistent through the do Co-authored-by: Kazuhiro Sera <ksera@slack-corp.com> Co-authored-by: Michael Brooks <michael@michaelbrooks.ca>
Thanks to @TheManWhoStaresAtCode 's #940, we can close this issue now! |
Description
Issue #784 (PR #785) added the new
AWSLambdaReceiver
. This is an official, built-in receiver for AWS Lambda and should become an alternative to developer usingExpressReceiver
withServerlessExpress
.We should document this receiver by:
examples/
showcasing the usageAWSLambdaReceiver
AWSLambdaReceiver
documentationOnce the
AWSLambdaReceiver
supports OAuth, we can also update our deployment guide to use it.What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: