/charaline-serverless-lambda

Team project of Cloud Computing class at Kasetsart University.

Primary LanguageJavaScript

Link to website

http://charaline.s3-website-ap-southeast-1.amazonaws.com/

Setup

Install serverless framework

npm install -g serverless

Install all packages

npm install

Setup account

You can get access-key-id and secret-access-key here

Then you can setup account with this method below or use other method

serverless config credentials --provider aws --profile chalaline --key <your-access-key-id> --secret <your-secret-access-key>

Then set your key every time you open terminal (for working with dynamodb)

for linux, macOS

export AWS_ACCESS_KEY_ID=<your-access-key-id>
export AWS_SECRET_ACCESS_KEY=<your-secret-access-key>

for windows

set AWS_ACCESS_KEY_ID=<your-access-key-id>
set AWS_SECRET_ACCESS_KEY=<your-secret-access-key>

Test on localhost

serverless offline --port 5555

Deploy

serverless deploy

Remove all lambda

serverless remove