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
demandé il y a 2 mois212 vues
1 réponse
3
Réponse acceptée

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
répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois
  • 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...

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions