TLDR InfoSec · STRATEGIES & TACTICS

EVENTBRIDGE PATTERN MATCHING: A FIELD GUIDE

deceptiq.com7 min read

Summary from the TLDR InfoSec newsletter

EventBridge JSONs can become very complex quickly. AWS provides very little documentation to help parse them. Fields at the same level of the JSON are ANDed together, whereas values in an array are ORed together. If a user wants to apply an OR to two fields, they can use the $or operator. However, users should be careful when nesting $ors, as each branch gets expanded into additional sub-patterns that can become contradictory or complex to debug. This post also covers other operators and how to combine them to develop complex Boolean logic.