Execute the command sudo su
Download and unzip the sample data:
curl -O https://amazon-dynamodb-labs.com/static/hands-on-labs/sampledata.zip
unzip sampledata.zip
Load the sample data using the batch-write-item
CLI:
aws dynamodb batch-write-item --request-items file://ProductCatalog.json
aws dynamodb batch-write-item --request-items file://Forum.json
aws dynamodb batch-write-item --request-items file://Thread.json
aws dynamodb batch-write-item --request-items file://Reply.json
After each data load, you will receive a message indicating that there are no unprocessed items.
{
"UnprocessedItems": {}
}