Skip to content

danielcondemarin/aws-global-dynamodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Global DynamoDB

Provision Global DynamoDB Tables in a few lines. Simply provide a list of regions where you want your table to be replicated and the component handles the rest ✨ You can also add or remove regions at any time.

Powered by Serverless Components

Contents

1. Install

$ npm install -g serverless

2. Create

Just create a serverless.yml file

$ touch serverless.yml
$ touch .env      # your AWS api keys
# .env
AWS_ACCESS_KEY_ID=XXX
AWS_SECRET_ACCESS_KEY=XXX

3. Configure

# serverless.yml

myGlobalTable:
  component: "aws-global-dynamodb"
  inputs:
    tableName: myGlobalTable
    replicationGroup:
      - "eu-west-1"
      - "us-west-1"
    attributeDefinitions:
      - AttributeName: id
        AttributeType: S
    keySchema:
      - AttributeName: id
        KeyType: HASH

4. Deploy

$ serverless

New to Components?

Checkout the Serverless Components repo for more information.

About

Deploy Global DynamoDB tables with ease using Serverless Components

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors