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
asked a month ago203 views
1 Answer
3
Accepted Answer

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
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
  • 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...

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions