Actual intelligence, no models are capable of such high level design because they cannot handle the intricacies of the details
The naive way to do it is just to submit the file to the API, the API saves it to S3 and then does bulk INSERTS.
Claude did the first part right - create a pre signed S3 URL, send it to the browser and the file is uploaded directly to S3.
But it did the second part incorrectly - a bulk INSERT after getting the file from S3.
The correct way was to use the AWS extension that lets you upload the file directly from S3 into a table. The difference is 40 minutes vs 2 minutes. Of course Lambda times out in 15.