Search code examples
amazon-dynamodb

Ddb streams - will it invoke on a ddb.update() error?


Let's say I have a lambda that calls ddb.update() and it fails. Will the TST 'new image' still be invoked, but with a null payload? Or will it not be invoked unless the ddb.update() succeeded?


Solution

  • The updates must succeed, and must also alter data.

    • If it fails - No stream event
    • If it succeeds, but did not change any values - No stream event.