We are encountering a situation where if we have a table globally replicated but also use the tables stream to process records on insert/update events.
Ex. We have a table replicated between us-east-1 and us-west-2 with a lambda connected to each tables stream in their region. When an update is performed in the us-east-1 table the us-west-2 lambda is invoked with the updated record. The problem is we need to not process the record replicated to us-west-2, we are using version 2019 of dynamodb global tables so there are no metadata or additional fields that help to do this validation.
Anyone knows how to mitigate this issue?