Aws-sdk dynamo db doesn't execute query in rules