title: AWS Maximum BadRequestException retries reached for query Using Data API to Query RDS Serveless Aurora
body: <p>I have created a Lambda function that uses awswrangler data api to read in data from an RDS Serverless Aurora PostgreSQL Database from a query. The query contains a conditional that is a list of IDs. If the query has less then 1K ids it works great, if over 1K I get this message:</p>
  <p><code>Maximum BadRequestException retries reached for query</code></p>
  <p>An example query is:</p>
  <pre><code>&quot;&quot;&quot;select * from serverlessDB where column_name in %s&quot;&quot;&quot; % ids_list
  </code></pre>
  <p>I adjusted the serverless RDS instance to force scaling as well as increased the concurrency on the lambda function. Is there a way fix this issue?</p>