Skip to content

Instantly share code, notes, and snippets.

@fivemini
Last active March 16, 2017 15:58
Show Gist options
  • Save fivemini/862182b7cc59144f7f5ae680d9618b6b to your computer and use it in GitHub Desktop.
Save fivemini/862182b7cc59144f7f5ae680d9618b6b to your computer and use it in GitHub Desktop.
$ aws --region us-east-1 --profile readonly dynamodb query --table-name query_test --no-scan-index-forward --return-consumed-capacity TOTAL --max-items 1 --key-condition-expression "username = :v1" --expression-attribute-values '{ ":v1":{"S":"bob"} }'
{
"Count": 14,
"Items": [
{
"username": {
"S": "bob"
},
"epochtime": {
"N": "14"
}
}
],
"NextToken": "xxxxxxxxxxx",
"ScannedCount": 14,
"ConsumedCapacity": {
"CapacityUnits": 0.5,
"TableName": "query_test"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment