How do I stop EventBridge from firing twice for the same interaction event? The payload looks identical except for the timestamp, which breaks my downstream logic.
Here’s the snippet I’m using to check for duplicates. It’s not catching the second one because the eventId is always different.
eventId changes because it’s a delivery ID, not a source ID. Look at detail.interactionId or detail.conversationId instead. That’s stable per interaction. Also, check your EventBridge rule filter. If you’re catching all events, you’ll get retries. Add an attribute filter for eventType to narrow it down.