This is an example of how to use serverless-express with NestJS on AWS using the Serverless framework.
$ npm installTo simulate the app running on Lambda locally, run the following:
$ npm run sls:offlineThe application will be available at http://localhost:3000/dev/hello.
To deploy the app to AWS, you'll first need to configure your AWS credentials. There are many ways to set your credentials, for more information refer to the AWS documentation.
Once set you can deploy your app using the serverless framework with:
$ npm run sls:deploy