A template for develop lambda project integrate with SNS (Simple Notification Service) with divided environment variable
This repo contains template for lambda serverless with Simple Notification Service
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Nodejs >= 14
- Serverless
- Credentials:
- AWS
- SNS
Run following command in your terminal (you are in lambda-serverless-template folder):
- Install dependency
yarn
- Test application at local
sls invoke local -f sendEmail --path src/functions/send-email/mock.json --stage local
sls deploy --stage ${stageName}
- Example:
sls deploy --stage dev
sls deploy --stage production -f syncnft
- More command: Serverless CLI commands
Error | How to fix |
---|---|