Created
March 8, 2021 06:18
-
-
Save hariby/3391853457f67d0aaa9d572f7394305d to your computer and use it in GitHub Desktop.
Script to create multiple DynamoDB tables for test
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
#!/bin/bash | |
for i in {1..200} | |
do | |
aws dynamodb create-table \ | |
--attribute-definitions AttributeName=ConfigID,AttributeType=S AttributeName=ItemID,AttributeType=N \ | |
--table-name myapp-user"$i" \ | |
--key-schema AttributeName=ConfigID,KeyType=HASH AttributeName=ItemID,KeyType=RANGE \ | |
--billing-mode PAY_PER_REQUEST | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment