All Projects → rrahul963 → serverless-create-global-dynamodb-table

rrahul963 / serverless-create-global-dynamodb-table

Licence: Apache-2.0 license
serverless plugin that would create global dynamodb tables for specified tables

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to serverless-create-global-dynamodb-table

landmap
Landmap package for R
Stars: ✭ 33 (+32%)
Mutual labels:  global
faas-federation
Enable routing between multiple OpenFaaS gateways or providers
Stars: ✭ 18 (-28%)
Mutual labels:  global
oggm
Open Global Glacier Model
Stars: ✭ 167 (+568%)
Mutual labels:  global
pingmote
Cross-platform Python global emote picker to quickly insert custom images/gifs
Stars: ✭ 24 (-4%)
Mutual labels:  global
Java-Memory-Manipulation
User friendly, Garbage-free, and cross-platform process, module and memory interfacing via the power of Java
Stars: ✭ 51 (+104%)
Mutual labels:  global
CSGSI
A simple C# library to interface with Counter-Strike: Global Offensive's Game State Integration
Stars: ✭ 124 (+396%)
Mutual labels:  global
tictac
Demonstration of building a clustered, distributed, multi-player, turn-based game server written in Elixir.
Stars: ✭ 278 (+1012%)
Mutual labels:  global
fourinarow-app
An online version of the popular game four in a row, written in Flutter + Dart on the client and Rust on the server side.
Stars: ✭ 23 (-8%)
Mutual labels:  global
csgo richpresence
Discord Rich Presence support for Counter-Strike: Global Offensive!
Stars: ✭ 16 (-36%)
Mutual labels:  global
aws-secure-websockets
Secure web socket implementation using AWS products and serverless framework
Stars: ✭ 49 (+96%)
Mutual labels:  aws-dynamodb
Flutter-Global-Config
A flutter package for managing different configurations and making them available everythere inside the app.
Stars: ✭ 88 (+252%)
Mutual labels:  global
incache
Powerful key/value in-memory storage or on disk to persist data
Stars: ✭ 16 (-36%)
Mutual labels:  global
react-globally
Gives you setGlobalState, so you can set state globally
Stars: ✭ 22 (-12%)
Mutual labels:  global
requireg
Resolve and require local & global modules in node.js like a boss
Stars: ✭ 45 (+80%)
Mutual labels:  global
gogtags
GNU global compatible source code tagging for golang
Stars: ✭ 42 (+68%)
Mutual labels:  global
jest-it-up
🌐📈 Automatically bump up global Jest thresholds whenever coverage goes above them
Stars: ✭ 37 (+48%)
Mutual labels:  global
lein-codeindex
Index code using etags, ctags or gtags.
Stars: ✭ 19 (-24%)
Mutual labels:  global
CSGO-Offset-Scanner
Java Based Cross-Platform CSGO Offset and Netvar Scanner
Stars: ✭ 28 (+12%)
Mutual labels:  global
download water data
Downloader for the Global Surface Water Data of the Copernicus Programme
Stars: ✭ 25 (+0%)
Mutual labels:  global
ecommerce-shopfront-on-aws
A high availability, API-first reference architecture for ecommerce using AWS services
Stars: ✭ 56 (+124%)
Mutual labels:  aws-dynamodb

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:
    version: v1 # optional, default is 'v1' (2017.11.29), please use 'v2' for (2019.11.21) version creation
    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.
                       # if you use 'createStack: true' with 'version: v2', please add 'Condition' rule to your dynamodb to create it in the main region only,
                       # other regions are going to be replicated automatically from the main region.

NOTE:

  1. When creating global tables with createStack: false, any update the source table config is not replicated to global tables.
  2. version field is backward compatible and not required (the field can be absent).
    If you want to use Global Table (Version 2019.11.21), please use version: v2.
    Also, we don't recommend using v2 over v1 in your existing project. The plugin doesn't support updating from v1 to v2.
    More details about Global Tables you can find in the following link: AWS DynamoDB Global Tables
  3. Here is an example of using conditions, by default it's optional, but it's required for createStack: true with version: v2 setup:
Conditions:
  RegionUSEast1: !Equals [ !Ref "AWS::Region", us-east-1 ]

MyDynamoDBTable:
    Condition: RegionUSEast1
    Type: 'AWS::DynamoDB::Table'
    DeletionPolicy: Retain
    Properties:
    ....

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
  • 3.1.0
    • Added support to create a new version of Global Table (Version 2019.11.21)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].