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.
ddmimp -t dynamodb-table-name path/to/the/json/line/data.jsonl
NOTE: Mind your table schema, item size, and traffic cost.
To make ddbimp
available in your system, you can run the following command.
go install github.com/festum/ddbimp@latest
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