Wednesday, January 20, 2016

Windows command line aws dynamodb update-item example

Here is an example of using update-item on an AWS dynamoDB

aws --region us-east-1 dynamodb update-item ^
--table-name my-dynamo-table-name --key ^
"{""Id"":{""S"":""IdToMatch""}}" ^
--update-expression "SET #H = :h" ^
--expression-attribute-names "{""#H"":""ColumnName""}" ^
--expression-attribute-values "{"":h"":{""S"":""TestString""}}"

This was inspirational:
http://docs.aws.amazon.com/cli/latest/reference//dynamodb/update-item.html

1 comment: