For the complete documentation index, see llms.txt. This page is also available as Markdown.
AlphaTeamEnterprise

DynamoDB

Spin up an isolated DynamoDB branch of your remote tables with mirrord

This page covers DB branching for DynamoDB. For the general concepts, the full list of config fields, and how a session behaves, see the DB Branching overview.

The branch runs as a DynamoDB Local pod (amazon/dynamodb-local) in your cluster, so your application talks to an isolated endpoint instead of the source AWS account.

DynamoDB branching requires operator 3.179.0, mirrord CLI 3.228.0, and operator Helm chart 3.179.0 with the operator.dynamodbBranching value set to true.

Basic Configuration

{
  "feature": {
    "db_branches": [
      {
        "id": "users-dynamodb",
        "type": "dynamodb",
        "version": "latest",
        "iam_auth": { "type": "aws_rds" },
        "copy": {
          "mode": "all"
        }
      }
    ]
  }
}

Connection

Unlike the other engines, connection is optional for DynamoDB. Since there is no user or password, it is only used to point the source client at a custom/VPC endpoint URL (for example AWS_ENDPOINT_URL_DYNAMODB); if omitted, the standard regional AWS endpoint is used. See Connection Modes for the supported source formats.

IAM Authentication

DynamoDB branches authenticate to the source account with "iam_auth": { "type": "aws_rds" } (the aws_rds type name is reused across AWS engines). Since DynamoDB has no password-based auth, iam_auth is required when "copy": { "mode": "all" } is set. Credentials are read from the target pod's environment - see IAM Authentication for details and custom credential sources.

Copy Modes

DynamoDB supports two copy modes. Unlike the SQL engines, there is no "schema" mode - tables are schema-on-write, so only "empty" and "all" are available.

Mode
What gets cloned
Best for

"empty" (default)

Nothing - an empty branch with no tables copied

Workflows where your application creates its own tables or runs migrations/seeding as part of startup

"all"

The schema and items of every source table

A full clone of your environment data for debugging or reproducing production-like scenarios

"mode": "all" requires iam_auth, since reading the source account is only possible through AWS IAM.

Table Filters

You can restrict which tables are copied and apply a per-table filter using the collections map. A filter is a DynamoDB FilterExpression applied during the Scan of the source table.

In this example, only the users and orders tables are copied. The users table copy includes only items where active = true; the orders table is copied in full.

Known Limitations

Last updated

Was this helpful?