Skip to content

festum/ddbimp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DynamoDB Data Importer

A tool to import DynamoDB using BatchWriteItem and bypass the 25-item-per-operation limit. Before proceeding further, please consider importing from S3 if the target table does not exist yet; it's cheaper and more efficient.

Demo

Usage

ddmimp -t dynamodb-table-name path/to/the/json/line/data.jsonl

NOTE: Mind your table schema, item size, and traffic cost.

Installation

To make ddbimp available in your system, you can run the following command.

go install github.com/festum/ddbimp@latest

Run in Docker

docker-buildx build -t dynamodb-importer:latest .
docker run -it --rm -v $HOME/.aws/credentials:/root/.aws/credentials:ro -v /tmp/ddbimp:/var/ddbimp/input --entrypoint bash dynamodb-importer