Skip to content

Instantly share code, notes, and snippets.

@hariby
Created March 8, 2021 06:18
Show Gist options
  • Save hariby/3391853457f67d0aaa9d572f7394305d to your computer and use it in GitHub Desktop.
Save hariby/3391853457f67d0aaa9d572f7394305d to your computer and use it in GitHub Desktop.
Script to create multiple DynamoDB tables for test
#!/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