Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
38 lines (29 loc) · 899 Bytes

README.md

File metadata and controls

38 lines (29 loc) · 899 Bytes

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