All Projects → serverless-components → aws-dynamodb

serverless-components / aws-dynamodb

Licence: other
⚡ Easily provision AWS DynamoDB tables using Serverless Components.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to aws-dynamodb

sucredb
Distributed KV database with causality tracking
Stars: ✭ 51 (-13.56%)
Mutual labels:  dynamo
aws-cloudfront
Deploy an AWS CloudFront distribution for the provided origins using Serverless Components
Stars: ✭ 22 (-62.71%)
Mutual labels:  serverless-components
backend
Easily host entire web applications on a single AWS Lambda function using Serverless Components
Stars: ✭ 16 (-72.88%)
Mutual labels:  serverless-components
Artifact
An in-memory distributed database
Stars: ✭ 63 (+6.78%)
Mutual labels:  dynamo
DynFreeCAD
Dynamo nodes for FreeCAD
Stars: ✭ 41 (-30.51%)
Mutual labels:  dynamo
awesome-serverless-framework
Serverless Framework 开发资源汇总 🚀
Stars: ✭ 120 (+103.39%)
Mutual labels:  serverless-components
SketchUpNET
SketchUp C# API - A C++/CLI API Wrapper for the Trimble(R) SketchUp(R) C API
Stars: ✭ 83 (+40.68%)
Mutual labels:  dynamo
thesaurus
TT Hackathon 2018 - Autocomplete for Visual Programming Nodes
Stars: ✭ 23 (-61.02%)
Mutual labels:  dynamo
TuneUp
A profiler for Dynamo graphs
Stars: ✭ 27 (-54.24%)
Mutual labels:  dynamo
GeniusLociForDynamo
Genius Loci is a package of 300+ custom nodes for Dynamo in Revit.
Stars: ✭ 17 (-71.19%)
Mutual labels:  dynamo
VisualDiff
A Dynamo view extension to visually compare the differences between two Dynamo Graphs
Stars: ✭ 13 (-77.97%)
Mutual labels:  dynamo
dynamo-node
DynamoDB mapper
Stars: ✭ 12 (-79.66%)
Mutual labels:  dynamo
speckle-sharp
.NET SDK, Schema and Connectors: Revit, Rhino, Grasshopper, Dynamo, ETABS, AutoCAD, Civil3D & more.
Stars: ✭ 214 (+262.71%)
Mutual labels:  dynamo
OrchidForDynamo
This repository contains the content of the Orchid package for Dynamo
Stars: ✭ 81 (+37.29%)
Mutual labels:  dynamo
aws-iam-role
⚡ The easiest way to deploy and manage AWS IAM Roles, powered by Serverless Components.
Stars: ✭ 13 (-77.97%)
Mutual labels:  serverless-components

Serverless Components


Click Here for Version 1.0


AWS DynamoDB Component ⎯⎯⎯ The easiest way to deploy & manage AWS DynamoDB tables, powered by Serverless Components.


  • Minimal Configuration - With built-in sane defaults.
  • Fast Deployments - Create & update tables in seconds.
  • Team Collaboration - Share your table outputs with your team's components.
  • Easy Management - Easily manage and monitor your tables with the Serverless Dashboard.

Check out the Serverless Fullstack Application for a ready-to-use boilerplate and overall great example of how to use this Component.


  1. Install
  2. Initialize
  3. Deploy
  4. Configure
  5. Develop
  6. Monitor
  7. Remove

 

1. Install

To get started with component, install the latest version of the Serverless Framework:

$ npm install -g serverless

After installation, make sure you connect your AWS account by setting a provider in the org setting page on the Serverless Dashboard.

2. Initialize

The easiest way to start using the aws-dynamodb component is by initializing the aws-dynamodb-starter template. Just run this command:

$ serverless init aws-dynamodb-starter
$ cd aws-dynamodb-starter

3. Deploy

Once you have the directory set up, you're now ready to deploy. Just run the following command from within the directory containing the serverless.yml file:

$ serverless deploy

Your first deployment might take a little while, but subsequent deployment would just take few seconds. For more information on what's going on during deployment, you could specify the --debug flag, which would view deployment logs in realtime:

$ serverless deploy --debug

4. Configure

The aws-dynamodb component requires minimal configuration with built-in sane defaults. Here's a complete reference of the serverless.yml file for the aws-dynamodb component:

component: aws-dynamodb          # (required) name of the component. In that case, it's aws-dynamodb.
name: my-table                   # (required) name of your instance.
org: serverlessinc               # (optional) serverless dashboard org. default is the first org you created during signup.
app: myApp                       # (optional) serverless dashboard app. default is the same as the name property.
stage: dev                       # (optional) serverless dashboard stage. default is dev.

inputs:
  name: my-table
  attributeDefinitions:
    - AttributeName: id
      AttributeType: S
    - AttributeName: attribute1
      AttributeType: N
  keySchema:
    - AttributeName: id
      KeyType: HASH
    - AttributeName: attribute1
      KeyType: RANGE
  localSecondaryIndexes:
    - IndexName: 'myLocalSecondaryIndex'
      KeySchema:
        - AttributeName: id
          KeyType: HASH
        - AttributeName: attribute2
          KeyType: RANGE
      Projection:
        ProjectionType: 'KEYS_ONLY'
  globalSecondaryIndexes:
    - IndexName: 'myGlobalSecondaryIndex'
      KeySchema:
        - AttributeName: attribute2
          KeyType: HASH
      Projection:
        ProjectionType: 'ALL'
  region: us-east-1

Once you've chosen your configuration, run serverless deploy again (or simply just serverless) to deploy your changes. Please keep in mind that localSecondaryIndexes cannot be updated after first deployment. This is an AWS limitation. Also note that this component exclusively uses the Pay Per Request pricing, which scales on demand like any serverless offering.

5. Develop

Instead of having to run serverless deploy everytime you make changes you wanna test, you could enable dev mode, which allows the CLI to watch for changes in your configuration file, and deploy instantly on save.

To enable dev mode, just run the following command:

$ serverless dev

6. Monitor

Anytime you need to know more about your running aws-dynamodb instance, you can run the following command to view the most critical info.

$ serverless info

This is especially helpful when you want to know the outputs of your instances so that you can reference them in another instance. It also shows you the status of your instance, when it was last deployed, and how many times it was deployed. You will also see a url where you'll be able to view more info about your instance on the Serverless Dashboard.

To digg even deeper, you can pass the --debug flag to view the state of your component instance in case the deployment failed for any reason.

$ serverless info --debug

7. Remove

If you wanna tear down your entire aws-dynamodb infrastructure that was created during deployment, just run the following command in the directory containing the serverless.yml file.

$ serverless remove

The aws-dynamodb component will then use all the data it needs from the built-in state storage system to delete only the relavent cloud resources that it created. Just like deployment, you could also specify a --debug flag for realtime logs from the website component running in the cloud.

$ serverless remove --debug
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].