Skip to content

Instantly share code, notes, and snippets.

@d-baranowski
Created December 11, 2019 10:32
Show Gist options
  • Save d-baranowski/41fa5d7f739158706b411dcf262b9a8d to your computer and use it in GitHub Desktop.
Save d-baranowski/41fa5d7f739158706b411dcf262b9a8d to your computer and use it in GitHub Desktop.
aws dynamodb scan --table-name PredictorPoc > sample.json
cat sample.json | jq -cr ".Items" > sample2.json
./split-array.sh sample2.json
for i in $(ls -t /tmp/item.*); do bash -c "aws dynamodb put-item --table-name PredictorDanPlayground --item file://$i"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment