Serverless Create Global DynamoDB Table

Serverless plugin to create dynamodb global tables

user  

rrahul963

serverless-create-global-dynamodb-table

serverless Build Status npm version Coverage Status

A serverless plugin to automatically creates dynamodb global table(s).

By default, the plugin will deploy the whole service stack in the specified region(s) and then setup global table relation between the dynamodb tables.

Install

npm install --save-dev serverless-create-global-dynamodb-table

Add the plugin to your serverless.yml file:

plugins:
  - serverless-create-global-dynamodb-table

Configuration

custom:
  globalTables:
    regions: # list of regions in which you want to set up global tables
      - region-1
      - region-2
    createStack: false # optional flag, when set to false will not deploy the stack in new region(s) and will create the tables using AWS SDK.

NOTE: When creating global tables with createStack: false, any update the source table config is not replicated to global tables.

Revisions

  • 2.0.0

    • Updated the package to deploy the service stack in the new region(s) by default
    • Added support to setup auto-scaling on global tables when not using create stack feature.
    • Added unit-tests
  • 2.1.0

    • Added support for PAY_PER_REQUEST billing mode for createStack: true mode
view on Github

Latest commit b2f54ec on Sep 24, 2017

New to serverless?

To get started, pop open your terminal & run:

npm install serverless -g