This exercise is based on a question that was asked by a user on Reddit. Please read through the question.
Read thread on RedditCommit the model to Local DynamoDB
Access Pattern : Get player information by name
aws dynamodb query \
--table-name GamePlayers \
--key-condition-expression '#name = :name' \
--expression-attribute-names '{"#name":"name"}' \
--expression-attribute-values '{":name": {"S":"paul"}}' \
--endpoint-url http://localhost:8000
aws dynamodb query \
--table-name GamePlayers \
--index-name GSI_Inverted \
--key-condition-expression '#id = :id' \
--expression-attribute-names '{"#id":"id"}' \
--expression-attribute-values '{":id": {"N":"100"}}' \
--endpoint-url http://localhost:8000
aws dynamodb query \
--table-name GamePlayers \
--index-name GSI_Inverted \
--key-condition-expression '#id = :id' \
--expression-attribute-names '{"#id":"id", "#status":"status"}' \
--expression-attribute-values '{":id": {"N":"100"}}' \
--projection-expression '#status' \
--endpoint-url http://localhost:8000