Sample of Serverless Framework + Express.
- configured aws-cli (ACCESS_KEY and SECRET)
- signed up to serverless.com
$ npm install -g serverless
$ sls login
$ git clone https://github.com/YoshiyukiKato/sls-todo.git
$ cd sls-todo && npm install
$ sls dynamodb install
$ sls dynamodb start
And then, run in local.
$ sls offline
Deploy to AWS. Before deploy, please set an environment variable DYNAMO_ACCESS_ROLE
.
$ sls deploy
Remove from AWS
$ sls remove