Download the .json.gz
file from S3, decompress it with gzip -d
and then push it with the below:
You'll need to modify "MyTable"
to match your destination table name and data.json
to whatever input file you're using.
jq -c -s '_nwise(25)|{"MyTable":map({"PutRequest":.})}' < data.json | while read item
do
echo $item > a && awslocal dynamodb batch-write-item --request-items file://a && rm a
done