Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
fix(dynamodb-stream): add DynamoDB stream as additional data only whe…
Browse files Browse the repository at this point in the history
…n metadaOnly is false (#463)

* fix(dynamodbstream): additional data only when metadaOnly is false

* fix(dynamodbstream): add total_record_count in DynamoDB trigger lambda

Co-authored-by: Daniele Frasca <[email protected]>
Co-authored-by: Ran Ribenzaft <[email protected]>
  • Loading branch information
3 people authored Mar 15, 2021
1 parent 704183a commit e6ffae6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/triggers/aws_lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ function createDynamoDBTrigger(event, trigger) {
region: record.awsRegion,
sequence_number: record.dynamodb.SequenceNumber,
item_hash: itemHash,
total_record_count: event.Records.length,
}, {
data: JSON.stringify(event.Records),
});
}

Expand Down

0 comments on commit e6ffae6

Please sign in to comment.