1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
I believe what you are trying to achieve it's not possible. In EventBridge rules, you cannot directly compare two values within a single event to check if they're different. EventBridge rule patterns are designed for matching specific values, not for performing comparisons between fields.
As a workaround, you can perform the comparison on the producer and add a property to reflect if they are different (something like hasChanged: true, then the rule pattern evaluates this property) or perform the filter on the consumer. The former will avoid unnecesarry executions of the consumer.
Contenus pertinents
- demandé il y a 8 mois
- demandé il y a 8 mois
- demandé il y a 3 ans

Hmm, interesting!
I'm unable to change the event itself I'm afraid as it is a 3rd party. Moreover, the event contains hundreds of fields that may change - name was just a simple example :)
It seems so far I'm limited to do an early return in the consumer, but that seems inefficient 🤔