CoorpAcademy / serverless-plugins

Collection of serverless plugins :zap:
231 stars 131 forks source link

[serverless-offline-dynamodb-streams] doesn't work for empty table #84

Open kalitamih opened 5 years ago

kalitamih commented 5 years ago

Good day! It seems that this plugin doesn't work with empty table. After I add something in the table, plugin works for my case.

drc-jpoehler commented 5 years ago

I can confirm. Thanks for posting this. I was tearing my hair out trying to figure out why my streams weren't creating the expected counts. Turns out it wasn't running when the table was empty.

AdrieanKhisbe commented 4 years ago

Hello, and sorry for late answer

This is unfortunately a known issue that is likely to be related to dynamodb-local. There is a comment about that in the tests: https://github.com/CoorpAcademy/serverless-plugins/blob/master/tests/serverless-plugins-integration/test-dynamodb-streams.js#L15

Might be forth it to mention it in the README

(also @kalitamih isn't in fact that the same problem you mentioned in #82 ? you so it could be closed)