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
gefragt vor 2 Monaten211 Aufrufe
1 Antwort
3
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
  • 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...

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen