Cannot create rule to match event that is sent manually to the event bus but the pattern is identical

61 Views Asked by At

I am trying to understand the AWS EventBridge better.

I've sent an event manually through the console that was confirmed: enter image description here

Then I tried to create a rule for the same event bus to catch that event when I hit "Resend" (in the picture above).

However, I get stuck at creating the rule.

As sample event (I know this is optional, but still) I copy-pasted the event that I sent manually: enter image description here

And as matching rule I copy-pasted the same, which, I think, should just work as it appears that this is exactly the event that I would be sending manually (see first picture above). <--- Wrong assumption?

But I get an error: enter image description here

There is a blind spot in my understanding, but I don't see it, what am I doing wrong here?

1

There are 1 best solutions below

2
On

version must be an object or an array you need to enclose version value in []. E.g. ”version”: [“0”]

Edit:

This is not just for the version in your example. All values within the pattern should be an object.

E.g.: enter image description here