Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 345 Bytes
<source>
type dynamodb_streams
tag stream
aws_region ddblocal
stream_arn "#{ENV['STREAM_ARN']}"
</source>
# Only pass MODIFY event
<filter stream>
type grep
regexp1 event_name MODIFY
</filter>
# Only keep new_image
<filter stream>
type jq
jq '.dynamodb|{new_image:.new_image}'
</filter>
<match stream>
type stdout
</match>