title: Errors importing large CSV file to DynamoDB using Lambda
body: <p>I want to import a large csv file (around 1gb with 2.5m rows and 50 columns) into a DynamoDb, so have been following <a href="https://aws.amazon.com/blogs/database/implementing-bulk-csv-ingestion-to-amazon-dynamodb/" rel="nofollow noreferrer">this</a> blog from AWS. </p>
  
  <p>However it seems I'm up against a timeout issue.  I've got to ~600,000 rows ingested, and it falls over.</p>
  
  <p>I think from reading the CloudWatch log that the timeout is occurring due to the boto3 read on the CSV file (it opens the entire file first, iterates through and batches up for writing)...  I tried to reduce the file size (3 columns, 10,000 rows as a test), and I got a timeout after 2500 rows.</p>
  
  <p>Any thoughts here?!  </p>
  
  <p>TIA :)</p>