@nearst/serverless-dynalite

2.0.4 • Public • Published

serverless-dynalite

A Serverless plugin to run Dynalite locally to handle DynamoDB development. This is heavily inspired by the serverless-dynalite plugin by Scott Donnelly.

Features:

  • Integrates with serverless-offline.
  • Seeds Tables from a js file
  • Creates Tables from your Resources

Getting Started

Install the node package with npm or yarn

npm install @nearst/serverless-dynalite --save-dev
yarn add -D @nearst/serverless-dynalite

Once the package is installed add it to the plugins section of your serverless.yml. The serverless offline plugin also needs to be installed

plugins:
  - '@nearst/serverless-dynalite'
  - serverless-offline
custom:
  # This is optional
  dynalite:
    region: localhost
    port: 8000
    dir: ./
    seed: 
    - table: table-1
      source: ./seed/table1.js

Package Sidebar

Install

npm i @nearst/serverless-dynalite

Weekly Downloads

166

Version

2.0.4

License

MIT

Unpacked Size

7.07 kB

Total Files

6

Last publish

Collaborators

  • joeleg
  • nearst-owner
  • tschoffelen
  • nearstreadonly
  • hannah2503
  • starsuit
  • martonveto