Skip to content

Instantly share code, notes, and snippets.

@ereli
Created February 21, 2018 19:53
Show Gist options
  • Save ereli/cedb2e63d608885c7406c2a03ac129bc to your computer and use it in GitHub Desktop.
Save ereli/cedb2e63d608885c7406c2a03ac129bc to your computer and use it in GitHub Desktop.
Read data from Dynamodb in normal JSON format
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