serverless-dynamodb-client is an abandoned Serverless Framework plugin designed to simplify interaction with AWS DynamoDB, providing a consistent API for both local DynamoDB instances and the AWS cloud service. Released as version `0.0.2` and last updated over 7 years ago, it was built specifically for Serverless Framework `0.5.x`. This package provides convenience wrappers for the AWS SDK's `DynamoDB` and `DynamoDB.DocumentClient` classes, automatically configuring them to point to a local DynamoDB instance (specifically on port 8000) when `serverless-dynamodb-local` is active, or to AWS otherwise. Due to its age and reliance on an extremely old version of the Serverless Framework, it is not compatible with modern Serverless setups (v1.x and above) and should not be used in new projects.
npm install serverless-dynamodb-clientVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `serverless-dynamodb-client` to obtain the `raw` DynamoDB client and then list existing tables. It highlights the basic CommonJS `require` pattern for this legacy plugin.
Do not use this plugin. Directly integrate the AWS SDK v2 or v3 into your Lambda functions, or explore actively maintained Serverless plugins for DynamoDB integration specific to your Serverless Framework version.
Immediately cease using this package. Implement direct AWS SDK usage for DynamoDB interactions within your Serverless functions, leveraging modern practices and SDK versions.
Ensure `serverless-dynamodb-local` is correctly installed, configured, and running on port `8000`. If you require a different port, you must manually configure the AWS SDK endpoint in your code instead of relying on this plugin.
This plugin is deprecated and abandoned. Migrate to direct AWS SDK usage or a modern, actively maintained DynamoDB plugin compatible with your Serverless Framework version.
Ensure that `serverless-dynamodb-local` is installed and properly configured to start on port `8000` (e.g., via `serverless dynamodb install` and `serverless dynamodb start`) before invoking your Lambda functions locally.