🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

serverless-offline-dynamodb

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-offline-dynamodb

A serverless plugin to create and manage local and offline DynamoDB.

0.0.12
latest
Source
npm
Version published
Weekly downloads
2
-66.67%
Maintainers
0
Weekly downloads
 
Created
Source

serverless-offline-dynamodb

A serverless plugin to create and manage local and offline DynamoDB.

serverless

Features

  • Create local DynamoDB Tables without any extra configuration
  • Seed initial data easily.

Docs

Prerequisites

This plugin expects a amazon/dynamodb-local container running and serverless-offline properly configured.

Here is a docker-compose.yml example:

version: '3'
services:
  dynamodb:
    container_name: logistics-api-offline-dynamodb
    image: amazon/dynamodb-local
    ports:
      - '8000:8000'
    working_dir: /home/dynamodblocal
    command: '-jar DynamoDBLocal.jar -sharedDb -dbPath ./'

[optional] You can use npx dynamodb-admin -H localhost to view and access your database.

Installation

npm i -D serverless-offline-dynamodb

Add serverless-offline-dynamodb into plugins section of your serverless configuration (be sure to include it BEFORE serverless-offline)

Data Seed:

To seed data, just create a folder called seed on project root and put a json file with exact same name of table you want to seed.

FAQs

Package last updated on 04 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts