Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

DynamoDB Client

Security covered Under active development 7 sites

This module provides a Drupal integration for AWS DynamoDB, offering a basic database wrapper and a KeyValueStore drop-in replacement. It allows for CRUD operations on DynamoDB tables and data, with options for multiple instances and granular settings. You can also access DynamoDB directly without the Drupal connection layer.

The Drupal DynamoDB module provides integration with AWS DynamoDB services.
Current integration provides a basic database wrapper for use with DynamoDB.

There is a Drupal-based wrapper implementation, but you can directly access DynamoDB without the Drupal connection layer (raw connection).

The Drupal wrapper is minimalistic and except passing your query params to the DynamoDB handles errors, consistent read settings (see README), avoiding pagination of results, etc.

For what I can use this module?

  • You can create your custom tables for your specific needs.
  • There is a KeyValueStore submodule which acts as a drop-in replacement for the core implementation

Features

  • DynamoDB table CRUD operations: create, delete, update and list tables
  • DynamoDB write, read, update and query data.
  • Option to use multiple DynamoDB instances.
  • Granular settings per each DynamoDB instance / table.
  • Database service which follows core connection layer
  • Ability to query default instance or any other.
  • Simplicity in use as any other database implementation.

Implemented methods
Data querying:

  • query
  • scan
  • getItem
  • putItem
  • updateItem
  • deleteItem
  • batchWriteItem
  • batchGetItem

Table actions:

  • createTable
  • updateTable
  • deleteTable
  • listTables

Syntax comparison with the core database layer
Initialize connection - default instance

# Drupal core MySQL.
Drupal::database();

# DynamoDB - access to DynamoDB through Drupal wrapper.
DynamoDb::database();

# DynamoDB - access directly to DynamoDB, without Drupal wrapper.
DynamoDb::rawDatabase();

Select

# Drupal core MySQL.
Drupal::database()->select(....;

# DynamoDB
DynamoDb::database()->query(.....;

Please refer to README how to setup connection details, and examples of query syntax for DynamoDB. As well check DynamoDB documentation .

Drupal 9–11

Ask your assistant about DynamoDB Client

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
May 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.3 Stable 9–11 Oct 17, 2024
1.0.2 Stable 9–10 Sep 26, 2023
1.0.1 Stable 9–10 Sep 26, 2023
1.0.0 Stable 9–10 May 21, 2023