Simple DynamoDB utility CLI🍺.
brew tap shuntaka9576/tap
brew install shuntaka9576/tap/ddbrewgo install github.com/shuntaka9576/ddbrew/cmd/ddbrew@latestRetrieves the records of the table specified in the argument and saves them to a file. The format of the file is jsonl, and if not specified, the file is created with the file name backup_tableName_yyyyymmdd-HHMMSS.jsonl. Use each option to adjust RCU/RRU.
ddbrew backup fooTableReads the jsonl file and writes it to the table. The RRUs to be consumed can be checked with the --dry-run option. To limit the number of writes, use the --limit option
ddbrew restore fooTable \
--file ./testdata/1.jsonlRead jsonl file and delete table data. Note that the deletion also consumes RUC/RRU.
ddbrew delete fooTable \
--file ./testdata/1.jsonlIf you use DynamoDB Local, please use the --local option
ddbrew restore fooTable \
--file testdata/1.jsonl \
--local http://localhost:8000