Friday, November 08, 2013

AWS CLI writing into Dynamo DB

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.

1 comment:

Careen joseph said...

It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read.
digital training in chennai

A little about Me

My photo
My name is Mitch Beaumont and I've been a technology professional since 1999. I began my career working as a desk-side support engineer for a medical devices company in a small town in the middle of England (Ashby De La Zouch). I then joined IBM Global Services where I began specialising in customer projects which were based on and around Citrix technologies. Following a couple of very enjoyable years with IBM I relocated to London to work as a system operations engineer for a large law firm where I responsible for the day to day operations and development of the firms global Citrix infrastructure. In 2006 I was offered a position in Sydney, Australia. Since then I've had the privilege of working for and with a number of companies in various technology roles including as a Solutions Architect and Technical team leader.