1.1.0 • Published 10 months ago

@hicksy/arc-plugin-sandbox-stream v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

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.

v1.1.0 - Breaking change

Previous versions of this plugin invoked the Stream lambda passing data.Records as the payload.

From v1.1.0 onwards, the stream function is now invoked passing the full object returned by AWS.DynamoDBStreams.getRecords. Which will return similar to:

{
  "Records": [...],
  "NextShardIterator": "arn:aws:dynamodb:ddblocal:000000000000:table/...."
}

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
1.1.0

10 months ago

1.0.2

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago