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.
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/...."
}
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