Comments (5)
Another option for a longer-term workaround with ongoing maintenace support committed:
Why: Unfortunately this package (serverless-dynamodb-local
) doesn't appear to be maintained, with no new releases to NPM in over 2 years. Many have tried to contact the authors previously, but there seems to be little engagement. Additionally, the person who seemed to be in charge of their open-source work has now left the company.
Solution: You can use serverless-dynamodb, a maintained fork, instead. (Disclaimer: I am a contributor to this fork). It is a drop-in replacement for this package, and is updated to fix this bug. This is a drop-in replacement for serverless-dynamodb-local
, so to upgrade simply:
- Uninstall
serverless-dynamodb-local
, e.g.npm uninstall serverless-dynamodb-local
- Install
serverless-dynamodb
, e.g.npm install serverless-dynamodb
- Update references in your code, including your serverless config, from
serverless-dynamodb-local
toserverless-dynamodb
(quite possible that you won't have any, as you just refer to it from your serverless config) - (optional) Update your serverless config custom
dynamodb
key toserverless-dynamodb
Of course, it's all still open-source and MIT licensed. Ownership of this new package sits with a registered charity, that is committed to maintaining the package into the future and is open to contributions from the community.
In any case would be open to feedback on the fork - can drop create an issue in that repository or email me (address on profile).
from serverless-dynamodb-local.
As temp solution for me helped to inherit serverless-dynamodb-local plugin with local one and override dynamodbOptions method as per @henriklippke PR, and use this plugin in my project
class ServerlessDynamodbLocalFix extends ServerlessDynamodbLocal { dynamodbOptions(options) { let dynamoOptions = {}; if (options && options.online) { ... } else { dynamoOptions = { endpoint: `http://${this.host}:${this.port}`, region: 'localhost', accessKeyId: 'MOCKACCESSKEYID', secretAccessKey: 'MOCKSECRETACCESSKEY', convertEmptyValues: options && options.convertEmptyValues ? options.convertEmptyValues : false, }; } return { raw: new AWS.DynamoDB(dynamoOptions), doc: new AWS.DynamoDB.DocumentClient(dynamoOptions), }; } } module.exports = ServerlessDynamodbLocalFix;
from serverless-dynamodb-local.
Thanks for the PR! This issue is blocking our pipelines as well. Any ideas for a workaround in the meantime?
from serverless-dynamodb-local.
@henriklippke -- I've published a fork to npm with your changes in.
I haven't yet gotten a chance to try it (I'll do so later this morning in some of my other projects)
Let me know if there's any issues.
https://www.npmjs.com/package/@rahulp959/serverless-dynamodb-local
from serverless-dynamodb-local.
Wrapping a jar file in a node module used by a plugin. What could possibly go wrong?
from serverless-dynamodb-local.
Related Issues (20)
- DynamoDB Local throwing NetworkingError HOT 5
- Windows: Serverless command "dynamodb install" not found. HOT 8
- Deprecation warning: CLI options definitions were upgraded with "type" property HOT 6
- Global Secondary Index is not working HOT 3
- WSL2 Unable to start DynamoDB Local process! HOT 2
- Cannot launch DynamoDB on Mac M1 architecture HOT 15
- Getting "UnknownError: Service Unavailable" while trying to run the local server using command "sls dynamodb start"
- Plugin not working after upgrading to SLS v3 HOT 2
- Can I upgrade schemas?
- Issue with default region on Localstack 1.1
- CLI_OPTIONS_SCHEMA_V3 deprecation support
- Semantic version inconsistency HOT 1
- Create table for offline mode only
- Unexpected key `ContributorInsightsSpecification` HOT 2
- migrate does not work with higher version of node over 16 HOT 4
- sls dynamodb install failing to download HOT 1
- Error getting DynamoDb local latest tar.gz location undefined: 403 HOT 30
- Please deploy the new version that fixes the http -> https thing on the dynamodb-local package. HOT 1
- The latest version installed by npm is different than what is in the repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-dynamodb-local.