raisenational / serverless-dynamodb

⚡🗃️ Serverless plugin to run DynamoDB local
https://www.npmjs.com/package/serverless-dynamodb
MIT License
68 stars 7 forks source link

UnexpectedParameter errors when using StreamSpecification #29

Closed rkaytazov closed 9 months ago

rkaytazov commented 11 months ago

An unexpected parameter error is thrown when using StreamSpecification for DynamoDB in an SLS template. Also FN::IF is unrecognized. Deleting the StreamSpecification key-value pair from the object resolves the issue and DDB launches successfully.

Screenshot 2023-12-08 at 7 34 43

This issue is similar to https://github.com/raisenational/serverless-dynamodb/issues/9

The fix here can be applied in the same way for StreamSpecification which worked locally for me https://github.com/raisenational/serverless-dynamodb/pull/10/files

Would it be possible to have this added as well?

Screenshot 2023-12-08 at 7 43 13

Line 341 in index.js

Thank you!

domdomegg commented 11 months ago

I've looked into this and I can't reproduce this issue. It looks like DynamoDB's table create command does support StreamSpecification:

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_CreateTable.html#DDB-CreateTable-request-StreamSpecification

Are you using other keys within StreamSpecification?

domdomegg commented 9 months ago

Closing as stale