Created
February 21, 2018 19:53
-
-
Save ereli/cedb2e63d608885c7406c2a03ac129bc to your computer and use it in GitHub Desktop.
Read data from Dynamodb in normal JSON format
This file contains hidden or 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
aws dynamodb get-item --table-name='table_name' --key='{"id" : {"S":"12345"}}'|python3 -c 'import sys, json;from dynamodb_json import json_util as jt; data = json.load(sys.stdin); print(json.dumps(jt.loads(data)))'|jq . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment