无需中间件即可将 DocumentDB 与 SNS 主题连接

Connect DocumentDB with SNS topic without middleware

是否有任何配置可以透明地将 AWS DocumentDB 与 AWS SNS 主题连接起来,以便当在 DocumentDB 中写入内容时,相同的条目会因此在 SNS 主题中发布?

我们正在寻找一种无需中间件即可执行此操作的选项:例如,中间没有 lambda,以保持简单。

就此联系 AWS 支持后,他们的回复是:

Although the service role(AWSServiceRoleForRDS) associated with AWS DocumentDB consists of an Amazon SNS publish action (DocumentDB Developer Guide, pg:273), it does need a middleware to trigger the publish action to an SNS topic