AWS Eventbridge:捕获所有事件的模式 [英] AWS Eventbridge: Pattern to capture ALL events
问题描述
我想在 Eventbridge 中部署一个由所有事件触发的 AWS 事件规则,不进行任何过滤.
I'd like to deploy an AWS Event Rule in Eventbridge which is triggered by all events, with no filtering whatsoever.
我尝试了以下模式但没有成功.
I've tried the following patterns with no luck.
{
source: ["*"]
}
根据文档,您不能将模式留空.此外,模式中未包含的任何字段都是通配符,这意味着它们可以是任何值.
According to the documentation you cannot leave the pattern empty. Also, any fields not included in the pattern are wildcarded meaning they can be any value.
我读过一些文章说 Eventbridge 可以替代 SNS 和 SQS 等服务,但如果没有这些更精细的控制,我认为这不会发生.
I've read articles saying Eventbridge can replace services such as SNS and SQS but without these finer controls I don't see that happening.
谢谢
推荐答案
基于评论.
解决方案是使用空的prefix 匹配所有事件:
The solution was to use empty prefix to match all events:
{
"source": [{"prefix": "" }]
}
这篇关于AWS Eventbridge:捕获所有事件的模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!