TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Lambda Processing All DynamoDB Stream Events Despite Filters

1 pointsby sid172912 months ago
I am using the Serverless Framework with TypeScript to process DynamoDB stream events and then publish them to an SNS topic. I have configured my Lambda function to use filters to process only specific events from the stream. However, the Lambda function is processing every event from the stream, including those that should be excluded by the filters.<p>Here is my current configuration:<p><pre><code> { stream: { arn: &quot;${self:provider.environment.FORTUM_SESSION_STREAM}&quot;, type: &quot;dynamodb&quot;, filterPatterns: [ { eventName: [&quot;INSERT&quot;, &quot;UPDATE&quot;] }, { dynamodb: { NewImage: { status: { S: [&quot;COMPLETED&quot;], }, }, }, }, { dynamodb: { NewImage: { order: { M: { amount: { N: [{ exists: true }], }, }, }, }, }, }, ], maximumRetryAttempts: 5, enabled: true, bisectBatchOnFunctionError: true } },</code></pre>

no comments

no comments