DEV Community

Discussion on: NEW: DynamoDB Streams Filtering in Serverless Framework

 
leeroy_hannigan profile image
Leeroy Hannigan • Edited

This is not correct information. The filtering is on the Event Source Mapping on the Lambda side which is completely decoupled from DynamoDB Stream. Event filtering works regardless, as Global Table replication system is completely separate from your Lambda trigger.

On a side-note, try this filter @koletiv

{
  "filters": [
    {
      "pattern": "{\"dynamodb\":{\"NewImage\":{\"region\":{\"S\":[\"us-west-2\"]}}}}"
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
pzubkiewicz profile image
Pawel Zubkiewicz

@droizman have you tested that?