Created
August 15, 2024 07:09
-
-
Save guy9/be886e9b7ba4515561508109dba33dac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Create table | |
aws \ | |
--endpoint-url http://localhost:8000 \ | |
dynamodb create-table \ | |
--table-name Example \ | |
--attribute-definitions AttributeName=id,AttributeType=S \ | |
--key-schema AttributeName=id,KeyType=HASH \ | |
--provisioned-throughput ReadCapacityUnits=100,WriteCapacityUnits=100 | |
# Add items in parallel | |
# Change 40000 into 400 below for a faster demo (10,000 items instead of 1,000,000) | |
seq 1 40000 | xargs --max-procs=8 --max-args=1 ./create-25-items.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment