serverless-plugin-offline-dynamodb-stream icon indicating copy to clipboard operation
serverless-plugin-offline-dynamodb-stream copied to clipboard

missing eventSourceARN

Open kalitamih opened this issue 5 years ago • 3 comments

Hello! I noticed that eventSourceARN is missing in event, but in some cases it's crucial field. Is it possible to add this field?

kalitamih avatar Aug 29 '19 00:08 kalitamih

This looks like it comes from beyond the plugin - dynamodb local perhaps? @kalitamih I myself just need it to get the table name - is is the same for your case? Perhaps this can be injected.

cyberwombat avatar Dec 20 '19 21:12 cyberwombat

would need that also. multiple tables stream to the same lambda. i cannot distinguish which table sent the event w/o knowing the eventSourceArn.

@cyberwombat did you find a solution to your problem?

martinjuhasz avatar Feb 18 '20 09:02 martinjuhasz

I've submitted a PR #19 to solve this issue, in the meantime you could install my fork

yarn add --dev markw351/serverless-plugin-of fline-dynamodb-stream#inject-eventStreamARN

@kalitamih @cyberwombat @martinjuhasz

markw351 avatar Apr 02 '20 01:04 markw351