Documentation
¶
Overview ¶
Command examples-local-stream-event performs a real DynamoDB write (and, in ttl-remove mode, a real delete) and reads the resulting record from the table's DynamoDB stream with DescribeStream, GetShardIterator and GetRecords.
It never derives a record from the stored item. The record's event id, sequence number, keys, images and stream ARN all come from DynamoDB Local Streams. The one local substitution is the documented TTL service identity on a REMOVE record: DynamoDB Local does not run the TTL sweeper, so the harness deletes the item itself and adds the identity AWS documents for TTL deletes (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/time-to-live-ttl-streams.html).
See scripts/local/internal/streams for the reader, the Lambda event shape and the deviations the local backend has.