 <p>To perform a <code>query</code> against DynamoDB you must provide it with the primary/hash/partition key for the table.</p> <blockquote> <p><code>KeyConditionExpression</code>: The condition must perform an equality test on a single partition key value. The partition key equality test is required, and must be specified in the following format: <code>partitionKeyName</code> = <code>:partitionkeyval</code></p> </blockquote> <p>What you probably want is to use the <a href="https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#scan-property" rel="nofollow"><code>scan</code></a> method and provide it with a <code>ScanFilter</code> instead of a <code>QueryFilter</code>:</p> <pre><code>function searchFile(carModel, busMapping, from_date, until_date, location, attackTraffic, isTagged) { AWS.config = new AWS.Config({accessKeyId: '***', secretAccessKey: '***', region: 'us-west-2'}); var dynamodb = new AWS.DynamoDB({apiVersion: '2012-08-10'}); var params = { TableName : 'db', ScanFilter: { attr: { ComparisonOperator: 'EQ', AttributeValueList: [ {S: 'abc'} ] } } } dynamodb.scan(params, function(err,data) { if (err) { alert(err); } }) } </code></pre>