Skip to content

nasa-gcn/architect-plugin-dynamodb-local-streams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Architect plugin for Local DynamoDB Streams

This is a plugin for invoking stream functions defined in the @tables-streams pragma alongside a local DynamoDB instance.

When using Architect's sandbox mode, the plugin will consistently poll the local database for events with records. If records are found, it will invoke the function associated with the table.

Prerequisites

Usage

  1. Install this package using npm:
npm i @nasa-gcn/architect-plugin-dynamodb-local-streams
  1. Add the following to your project's app.arc configuration file:
@plugins
nasa-gcn/architect-plugin-dynamodb-local-streams

Known issues

There is an issue with the Docker image of DynamoDB local that causes a TrimmedDataAccessException error to be thrown on the first read. This problem lies deeper within DynamoDB and is out of the scope of this plugin. To handle this issue, there is a reset function that will trigger automatically. In practice, this means that the 1st invocation will fail (you will see a logged TrimmedDataAccessException message in your console), but the following invocations will work successfully.

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published