问题描述
我正在寻找一种方法来暂时禁用DynamoDB上的Lambda触发器.我希望能够在不触发Lambda代码的情况下在表上应用手动更新(例如,例如从S3备份导入数据).我尝试了lambda函数触发器"(Trigger)选项卡中触发器旁边的禁用按钮.我还尝试禁用表的整个Stream.在这两种情况下,当重新激活触发器/流时,所有触发事件(在它们被停用时发生的事件)都将被执行.
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.
如何防止此代码被触发?
How can i prevent this code being triggered?
非常感谢!
推荐答案
对于其他获得此答案的人- 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触发器/流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!