Skip to content

Instantly share code, notes, and snippets.

@jecc1982
Created March 23, 2023 02:42
Show Gist options
  • Select an option

  • Save jecc1982/fcbf88b83c88d6dddf6a54c8c382316d to your computer and use it in GitHub Desktop.

Select an option

Save jecc1982/fcbf88b83c88d6dddf6a54c8c382316d to your computer and use it in GitHub Desktop.
# Create new DynamoDb Local table for testing
aws dynamodb create-table --endpoint-url http://localhost:8000 \
--table-name SimulationJobs \
--attribute-definitions \
AttributeName=PK,AttributeType=S \
AttributeName=SK,AttributeType=S \
--key-schema \
AttributeName=PK,KeyType=HASH \
AttributeName=SK,KeyType=RANGE \
--billing-mode PAY_PER_REQUEST \
--table-class STANDARD
# Delete the table
aws dynamodb delete-table --table-name SimulationJobs --endpoint-url http://localhost:8000
# Dump all content
$ aws dynamodb scan --table-name SimulationJobs --endpoint-url http://localhost:8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment