Skip to content

DynamoDB ​

Reads items from one table. Use cdc_mode: snapshot for a one-off copy, or turn on DynamoDB streams and use snapshot_then_cdc to keep the destination in step.

Before you begin ​

  • IAM that can Scan the table. For CDC, also DescribeStream / GetRecords on the table's stream.
  • Streams enabled on the table when you use a CDC mode.
  • region matching the table.
bash
export AWS_DEFAULT_REGION="us-east-1"

Configure ​

python
from skippr import Config, DataSourceDynamodb, DataSourceDynamodbSourceCdcMode, Pipeline

cfg = Config.discover()
src = cfg.data_source(
    "app",
    DataSourceDynamodb(
        table_name="orders",
        region="us-east-1",
        cdc_mode=DataSourceDynamodbSourceCdcMode.SNAPSHOT,
    ),
)
cfg.pipeline("orders", Pipeline(data_source=src))
cfg.save()
bash
skipprd connect data-source dynamodb \
  --pipeline orders \
  --name app \
  --table-name orders \
  --region us-east-1 \
  --cdc-mode snapshot
yaml
data_sources:
  app:
    Dynamodb:
      table_name: orders
      region: us-east-1
      cdc_mode: snapshot

Options ​

KeyTypeRequired/DefaultDescription
table_namestringRequiredDynamoDB table
regionstringRequiredAWS region
endpoint_urlURLNot setLocal or compatible endpoint
formatstringNot setItem format override
batch_size_bytesintegerNot setMax bytes per batch
batch_size_secondsintegerNot setMax seconds per batch
cdc_modestringsnapshotsnapshot, snapshot_then_cdc, or cdc_only

What gets synced ​

Each item becomes a row. Snapshot copies the table once. CDC modes apply inserts, updates, and deletes. See Change data capture.

snapshot_then_cdc writes a 16-byte _skippr_order_token (zeros for the snapshot, then the stream sequence) so a warehouse that upserts on business keys can treat the snapshot as the baseline. Dynamo items have no event-time attribute, so Skipprd sets _skippr_event_time to the stream ApproximateCreationDateTime when it is present, otherwise ingest time. Point transform.batch_time_fields at _skippr_event_time when you need day partitioning. The warehouse column is skippr_event_time (Skipprd strips the leading underscore).

Troubleshooting ​

SymptomFix
AccessDeniedExceptionGrant Scan (and stream read for CDC)
Stream not foundEnable DynamoDB Streams, then use a CDC mode
CDC order token '' is not fixed-width hexThe snapshot batch is missing an order token. Use cdc_mode: snapshot_then_cdc (not append-only) so Skipprd writes the 16-byte snapshot token.
Compact logs time= empty, or Iceberg says missing event timeDynamo items have no timestamp. Set batch_time_fields: _skippr_event_time. The Iceberg column is skippr_event_time.
Wrong regionMatch region to the table

Next steps ​