DynamoDB scripts
Install a local instance of DynamoDB following these instructions.
Install the AWS CLI from here.
From the db-scripts
repository, start the database:
sh ./start.sh
Leave the database running, open a separate terminal and run:
sh ./create-table.sh
Test that the table has been created:
sh ./scan.sh
When developing on your local machine, you can always use the default parameters.
Usage (e.g. for scan.sh
):
sh ./scan.sh "[dev|prod]" "[local|remote]"
# defaults to [prod] [local]
# e.g.
sh ./scan.sh
sh ./scan.sh dev remote