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

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

问题描述

我正在寻找一种方法来暂时禁用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?

非常感谢!

推荐答案

对于其他获得此答案的人-

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天全站免登陆