This project is a sample project to demonstrate how to setup aws lambda function with nestjs.
$ yarn install
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
Before deployment, you need to setup aws credentials in your local machine. Refer below link for more details. https://www.serverless.com/framework/docs/providers/aws/guide/credentials
- Dev environment
yarn sls:deploy
- Prod environment
yarn sls:deploy:prod
- If you want to setup aws lambda function in serverless. you can refer below link. https://www.serverless.com/framework/docs/providers/aws/guide/credentials.