Open tgfischer opened 6 years ago
I had a look at the source and noticed that the streams are enabled even in the DDb local.
Might need some time to inspect this.
Hi @rehrumesh, any luck on this? I am having exactly the same problem.
+1 here. @rehrumesh Were you ever able to find out more?
+1 i can't make it work either. don't know what i'm missing here
Yeah I was hoping this was available too for streams as I would prefer to test out a new feature locally first. I'm taking a look into it now but my initial impression is that there's no obvious sign that serverless-dynamodb-local
is passing any config to dynamodb-local
about what lambdas should handle stream events.
Thinking about this now - that would really be a job of serverless-offline
as api-gateway would do this in AWS. I'll do a bit more digging but I'm guessing the functionality is just not there and this is just something I'll have to dev against my stage environment in AWS
Yeah I think the functionality isnt there without a plugin update either on this one or serverless-offline
- this thread suggests serverless-offline
doesnt support events. You could go the SNS workaround but I'm not keen on adding another resource just to get offline functionality ;-)
Hi, I am also facing the same issue. I have tried the below plugins
1. serverless-offline-dynamodb-streams
2. serverless-plugin-offline-dynamodb-stream
I am able see the data persisted in dynamodb local but the streams is not triggered. I am using serverless 3.0 framework.
I'm trying to trigger a lambda to update an Elastic Search instance whenever changes are made to DynamoDB. I have the stream set up in my
serverless.yaml
file, and when I deploy it, the lambda is triggered. However, when I run this withserverless-offline
, the function is not triggered.Here is my
serverless.yaml
Is what I'm trying to do possible with
serverless-dynamodb-local
? Or is there more configuration that needs to be added to fire this function locally?Thanks for the help!