I am trying the AWS CLI with local DynamoDB.
While I was working, I found some issues.
Inserting & Retrieving Items | DynamoDB, explained. shows how to create a table using JSON format. But it didn't work for me. So I had to use Basic Operations for Tables - Amazon DynamoDB. Anyways, it worked.
But what was the trouble was when putting an item.
I tried to add item to the local db like this:
aws dynamodb put-item \
--table-name UsersTable \
--item '{
"Username": {"S": "alexdebrie"}
}' \
--endpoint-url http://localhost:8000
But there was an error like this:
Unknown options: {S:, alexdebrie}, }', Username:
How can I handle this?
PS: I am using Windows so instead of \, I used ^.