amazon-archives / dynamodb-import-export-tool

Exports DynamoDB items via parallel scan into a blocking queue, then consumes the queue and import DynamoDB items into a replica table using asynchronous writes.
Apache License 2.0
90 stars 38 forks source link

Support on demand tables #17

Open jsmitty12 opened 5 years ago

jsmitty12 commented 5 years ago

On-demand DynamoDB tables return 0 for read/write capacity units, which means the ratio specified is useless. Two new CLI arguments have been added (--onDemandWriteCapacityUnits, --onDemandReadCapacityUnits) to allow the user to specify the read and write capacity to use for on-demand tables. Those values are used only if the read/write capacity units are less than 1 (which should only happen if the table is on-demand).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

maxmanders commented 4 years ago

I'm going to give this branch a spin. I've raised an issue referencing your PR; this is a feature I'm keen to use ASAP. Thanks for putting the work in!

maxmanders commented 4 years ago

I also updated the of powermock to 2.0.0-beta.5. The tests weren't passing on mvn install, and Stack Overflow suggested a newer release of PowerMock would fix this. Caveat emptor - I'm not a Java developer.