I have Table with 2 attribute id(string,primary key), value(string).
When I try follwoing KeyConditionExpression it throws Query key condition not supported
I would stay away from scans at all costs, in this scenario I would create a global secondary index. The primary key on a GSI doesn't require uniqueness and you can query off of that. Storage is cheap, you can probably live with the extra keys.