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
preguntada hace 2 meses211 visualizaciones
1 Respuesta
3
Respuesta aceptada

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
EXPERTO
respondido hace 2 meses
profile picture
EXPERTO
revisado hace 2 meses
  • 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...

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas