【发布时间】:2021-03-12 02:50:40
【问题描述】:
在 Cloudwatch 事件中,我们可以在源、详细信息等方面编写过滤规则。我目前的做法是 如下图,
DefaultEventsRule:
Type: AWS::Events::Rule
Properties:
Name: "CloudWatchRule1"
Description: "Match events and send them to corresponding queue for delivery."
EventPattern:
{
"source": ["xyz"],
"resources":
...
是否可以对该source 进行正则表达式操作?
看起来不可能在事件上编写正则表达式; SO中还有另一个问题提出了类似的问题(destination),解决方法是使用单独的规则,这似乎也是获取源代码的唯一方法。
【问题讨论】:
标签: regex amazon-web-services events filter amazon-cloudwatch