问题描述
限时送ChatGPT账号..我是 AWS 的新手,我一直在寻找一种从 RDS 服务(尤其是 MYSql)触发 Lambda 的方法.有什么办法可以实现吗?如果没有,还有其他方法可以实现吗?
I am new to AWS and I was looking for a way to trigger Lambda from RDS Service in particular MYSql. Is there any way possible to achieve it? If not is there any other way to achieve the same?
推荐答案
无法直接从 RDS 触发 Lambda 函数,但您可以将 SNS 主题与 RDS 实例关联以获取通知(请参阅 this) 然后将该 SNS 主题作为事件源添加到 Lambda 函数,该函数将具有一样的效果.本文档描述了 RDS 中可用的事件类别.
There is no way to directly trigger Lambda functions from RDS but you can associate an SNS topic with an RDS instance for notifications (see this) and then add that SNS topic as an event source to a Lambda function which would have the same effect. This document describes the available event categories in RDS.
这篇关于RDS 服务触发 Lambda的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论