Ravi Sir's Cards › AWS
DynamoDB put / get
This revision card explains DynamoDB put / get. It starts from the need that apps read and write single items all day. It describes items use type letters — S string, N number. The how-to section covers how to put-item, get-item by full key, update-item, delete-item. An example on the card is use --condition-expression to avoid overwrites.
Read card text
What this card says
Why do we need it?
Apps read and write single items all day.
What is it?
Items use type letters: S string, N number.
{"cust":{"S":"ravi"}}
How to do it
put-item, get-item by full key, update-item, delete-item.
--update-expression "SET #s = :p"
Example
Use --condition-expression to avoid overwrites.