Skip to content

Easily provision AWS DynamoDB tables using Serverless Components

License

Notifications You must be signed in to change notification settings

DaySmart/aws-dynamodb

 
 

Repository files navigation

aws-dynamodb

Easily provision AWS DynamoDB tables using Serverless Components.

 

  1. Install
  2. Create
  3. Configure
  4. Deploy

 

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

myTable:
  component: '@serverless/aws-dynamodb'
  inputs:
    name: nameOfTable # optional
    attributeDefinitions:
      - AttributeName: id
        AttributeType: S
    keySchema:
      - AttributeName: id
        KeyType: HASH
    region: us-east-1

4. Deploy

$ serverless

 

New to Components?

Checkout the Serverless Components repo for more information.

About

Easily provision AWS DynamoDB tables using Serverless Components

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%