This is a simple example that shows how to deploy an existing fastify application, with minimal changes, to AWS Lambda.
- run
npm installto grab the dependencies - run
npm run deployto send everything up to AWS Lambda
The third step will print out a URL you can use to access the fastify app.
- Change
app.js - (Optionally) use
npm install <PACKAGE NAME> -Sto install additional dependencies (always save them topackage.jsonusing-S) - Run
npm run updateto send the new version up to AWS. No need to generate the proxy again
See the Running Express or fastify Apps in AWS Lambda tutorial.