暂时禁用 DynamoDB Lambda 触发器/流 [英] Temporarily disable DynamoDB Lambda Triggers / Stream

查看:23
本文介绍了暂时禁用 DynamoDB Lambda 触发器/流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法来临时禁用 DynamoDB 上的 Lambda 触发器.我希望能够在不触发 Lambda 代码的情况下对表应用手动更新(例如,从 S3 备份导入数据).我尝试了 lambda 函数触发器"选项卡中触发器旁边的禁用按钮.我还尝试禁用表的整个流.在这两种情况下,当重新激活触发器/流时,所有的触发器事件(在它们被停用时发生)都会被执行.

I'm looking for a way to temporarily disable Lambda triggers on a DynamoDB. I want to be able do apply manual Updates on a table (e.g. such as importing data from a S3 backup) without the Lambda code being triggers. I tried the disable button next to the trigger in the lambda functions "Trigger" tab. I also tried to disable the whole Stream for the table. In both cases, when reactivating the trigger/stream all the trigger events (that happened, while they were deactivated) are executed then.

如何防止触发此代码?

非常感谢!

推荐答案

对于其他得出此答案的人 - https://alestic.com/2015/11/aws-lambda-kinesis-pause-resume/ 提供了一个 CLI 解决方案,用于暂停流读取,并从中恢复地点在未来的某个时间点.

For others that arrive at this answer - https://alestic.com/2015/11/aws-lambda-kinesis-pause-resume/ provides a CLI solution for pausing stream reading, and resuming from the same place at some point in the future.

这篇关于暂时禁用 DynamoDB Lambda 触发器/流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆