README
steps
- Install nodejs
- Install serverless
npm install -g serverless
- setup credentials
sls config credentials --provider aws --key 'accessKeyId' --secret 'secretAccessKey'
- create and redirect to new folder
- Run
sls create --template aws-nodejs
- open the folder and find files server.yml and handler.js
- Add your lambda code to handler.js and edit server.yml to deploy
- Create and verify email for SES access in aws console
- Create table
contactForm
with partition keyid
ofNumber
in dynamodb - Run
sls deploy
and getapi
for sending emails- params :
- name
- emails
- contactNumber
- subject
- message
- params :