Giter VIP home page Giter VIP logo

arc-plugin-sandbox-stream's Introduction

arc-plugin-sandbox-stream

This plugin enables developers to use DynamoDB streams locally in their arc or enhance sandbox environment

Note you'll need to running DynamoDB Local and have it configured in architect, please refer to my guide.

Setup

1. Add the dependency to your project

npm install @hicksy/arc-plugin-sandbox-stream

2. Configure your project to use @tables-streams in .arc file

@tables
example
  pk *String
  sk **String

@tables-streams
example

3. Add the plugin to arc config

@plugins
hicksy/arc-plugin-sandbox-stream

arc-plugin-sandbox-stream's People

Contributors

hicksy avatar

Stargazers

Busticated avatar Matt Mοllica avatar

Watchers

 avatar Matt Mοllica avatar

arc-plugin-sandbox-stream's Issues

Stream handler invoked with the wrong structure

First of all; thank you for a great plugin! Paired with a small plugin that updates the table with a StreamSpecification it's pretty much flawless!

However, I have found a small issue; when the plugin invokes the stream handler defined in .arc, it invokes it by passing data.Records instead of data. This can be seen here. This means that we need to do some extra checks in our handler to identify whether it was locally invoked or not. This might not be the intention, so I thought I'd drop an issue :)

Let me know if you'd like some steps to reproduce!

dynamodb-local via Docker Invalid ShardId

Seeing ResourceNotFoundException: Invalid ShardId in ShardIterator error when using the Docker version of dynamodb-local.

Appears to be an issue on first run only (or first run after a period of not connecting to dynamodb instance for a while), an immediate subsequent run of arc's sandbox works successfully.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.