Skip to content

Instantly share code, notes, and snippets.

@ruandre
Last active February 7, 2022 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruandre/5d617e307c06b9fe05f40325c4557248 to your computer and use it in GitHub Desktop.
Save ruandre/5d617e307c06b9fe05f40325c4557248 to your computer and use it in GitHub Desktop.
AWS CLI DynamoDB Scan
# https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
# https://docs.aws.amazon.com/cli/latest/index.html
# https://stedolan.github.io/jq/
aws dynamodb scan \
--table-name tableName \
--profile dev \
--page-size 5 | jq .Items[] | jq {field1:.field1.S,field2:.field2.S} | json2csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment