Skip to content
Easily provision AWS DynamoDB tables using Serverless Components
JavaScript
Branch: master
Clone or download
Latest commit c075821 Aug 2, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintignore publishing Mar 19, 2019
.eslintrc.js publishing Mar 19, 2019
.gitignore add readme Mar 27, 2019
.npmrc add readme Mar 27, 2019
.prettierignore publishing Mar 19, 2019
CODE_OF_CONDUCT.md added dev files Apr 30, 2019
CONTRIBUTING.md added dev files Apr 30, 2019
COPYRIGHT added dev files Apr 30, 2019
LICENSE added dev files Apr 30, 2019
README.md Update README.md Aug 1, 2019
package.json using onDemand pricing Jul 19, 2019
prettier.config.js publishing Mar 19, 2019
serverless.js using onDemand pricing Jul 19, 2019
utils.js using onDemand pricing Jul 19, 2019

README.md

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:
    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.

You can’t perform that action at this time.