Notes

aws dynamodb create-table \ –table-name ExampleTable \ –attribute-definitions AttributeName=Id,AttributeType=N \ –key-schema AttributeName=Id,KeyType=HASH \ –provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5

aws dynamodb put-item \ –table-name ExampleTable \ –item '{“Id”: {“N”: “1”}, “Name”: {“S”: “John Doe”}}'

aws dynamodb get-item \ –table-name ExampleTable \ –key '{“Id”: {“N”: “1”}}'

aws dynamodb update-item \ –table-name ExampleTable \ –key '{“Id”: {“N”: “1”}}' \ –update-expression “SET Name = :name” \ –expression-attribute-values '{“:name”: {“S”: “Jane Doe”}}'

aws dynamodb query \ –table-name ExampleTable \ –key-condition-expression “Id = :id” \ –expression-attribute-values '{“:id”: {“N”: “1”}}'

Also see NodeJS example at: https://dynomate.io/blog/dynamodb-tutorial/