I have a dynamoDb table that is setup as global (2019 version) between two regions.
I have a lambda function assigned as a trigger on the table. When a record is inserted into, say, the east version of the table then the east version of the lambda is triggered. The record is then replicated to the west version of the table and the west version of the lambda is triggered.
I want one lambda triggered. But I also want both triggers to be enabled in case one region goes down.
How can I achieve this? I would rather not make my trigger logic idempotent.