AWS:保存每条 SNS 消息 [英] AWS: Saving every SNS message
问题描述
保存/记录在 AWS SNS 主题上发布的每条消息的最简单方法是什么?我认为可能有一个神奇的设置可以自动将它们推送到 S3 或数据库,或者可能是自动支持 HTTP 目标的数据库服务,但似乎并非如此.也许需要通过 Lambda 函数来完成?
What's the easiest way to save/log every message published on a AWS SNS topic? I thought there might be a magic setting to automatically push them to S3 or a database, or maybe a database service supporting the HTTP destination automatically, but doesn't seem to be the case. Maybe it needs to be done via a Lambda function?
目的只是为了在设置一些 SNS 发布时进行基本的诊断和调试.我并不真正关心大规模或快速查询,只想一次记录所有活动并执行几分钟的基本查询.
The purpose is just for basic diagnostics and debugging while setting up some SNS publishing. I don't really care about high scale or fast querying, just want to log and perform basic queries on all the activity for a few minutes at a time.
推荐答案
您可以设置一个触发器来将您的 SNS
消息推送到 SQS
队列.推送是自动的,不需要任何代码.
You can setup a trigger to push your SNS
messages to SQS
queue. Push is automatic and does not require any code.
这篇关于AWS:保存每条 SNS 消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!