Serverless framework (https://www.serverless.com/)
npm install -g serverless
serverless config credentials --provider aws --key <Your Key> --secret <Your Secret Key>
npm install
npm run deploy
npm run remove
npm test
Run the command in the local setup
npm run coverage
- Use Typescript instead of Javascript
- Package the code separately for each AWS Lambda functions
- Currently environment variables are stored in AWS Parameter store as the values are static. If passwords need to be rotated, it would be better to use AWS Secrets Manager.