Deploying Express App to AWS Lambda

0

I've built a REST API using Express and Node.js. I've broken it up into the three-tier architecture and I'm looking to deploy it to AWS Lambda, but am completely overwhelmed about where to start; articles I've read and videos I've watched don't account for completed REST APIs. I know my code needs a handler function, and that's about it.

M-Allen
已提問 2 個月前檢視次數 211 次
1 個回答
3
已接受的答案

To deploy your Express-based REST API to AWS Lambda, first, create a Lambda handler function that adapts your Express app to work with Lambda. Then, package your app and its dependencies into a deployment package. Finally, deploy the package to Lambda and configure API Gateway to trigger your Lambda function to handle HTTP requests. You can follow the documentation Building Lambda functions with Node.js

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 2 個月前
  • Thank you for your answer. I finally figured it out; I even figured out how to allow my Lambda to access DynamoDB to grab my data! Now I just have to figure out logging...

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南