AWS CLI writing into Dynamo DB

Nov 8, 2013 14:50 · 69 words · 1 minute read

Just a quick snippet of AWS CLI for putting items into a dynamo DB.

############

aws dynamodb put-item –table-name users –item

‘{
“userid”: {“S”: “1234356”},
“first” : {“S”: “Mitchy”},
“lastname” : {“S”: “Blog”},
“age” : {“N”: “999”}
}’

############

N = Number value

S = String Value

Use conditional Puts to update or replace existing items.

The new line layout above is just to make it easier to read.