In a Cloudwatch Event, we can write filter rules on source, details etc. How I'm doing it currently is as shown below,
DefaultEventsRule:
Type: AWS::Events::Rule
Properties:
Name: "CloudWatchRule1"
Description: "Match events and send them to corresponding queue for delivery."
EventPattern:
{
"source": ["xyz"],
"resources":
...
Is it possible to do regex operation on that source
?
It looks like it is not possible to write regex on events; there is another question out there in SO asking a similar question (for destination
), and the workaround was to use separate rules, seems that is the only way for source too.