This Serverless 0.5.x plugin help you to call AWS Dynamodb SDK without switching between different dynamodb instances, whether you work with Dynamodb local or online in AWS.
For each Lambda function, run the following command to add it to the npm package.json dependancies list
npm install --save serverless-dynamodb-client
Then you can use dynamodb in your code as follows
const { DynamoDB } = require('serverless-dynamodb-client');
// then use it as a standard DynamoDB client
You can define some database configuration with environment variables. Here they are:
localhost
8080
http://${HOST}:${PORT}\
;