Created
March 24, 2020 10:07
-
-
Save thomashartm/3ce003b75d29a2af50c723ce3112e60e to your computer and use it in GitHub Desktop.
DynamoDB AWS CLI cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# query by id | |
aws dynamodb query \ | |
--table-name <tablename> \ | |
--key-condition-expression "id = :name" \ | |
--expression-attribute-values '{ | |
":name": { "S": "<namevalues>" } | |
}' | |
# delete item by ID | |
aws dynamodb delete-item \ | |
--table-name <tablename> \ | |
--key '{ | |
"id": { "S": "<id>" } | |
}' | |
# Scan complete table and export to json file | |
aws dynamodb scan --table-name <tablename> > export.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment