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.
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.
Thanks
You can try to use exists filter: https://docs.aws.amazon.com/eventbridge/latest/userguide/content-filtering-with-event-patterns.html#filtering-exists-matching
One caveat of using this is that it's not working properly when defined in CloudFormation, but at least it works in SDK and in console.
My favorite was { "version": ["0"] }