TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Lambda Processing All DynamoDB Stream Events Despite Filters

1 点作者 sid172912 个月前
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>

暂无评论

暂无评论