First of all fair warning, it's been some time since I last used Laravel. From what I have seen online the lambda limit isn't specific to the tmp file as the whole lambda system is temporary. I believe your problem should be solved with simple queueing. You should be able to queue chunks of data in laravel and upload them consecutively so that you don't hit the 512mb quota. Let me know how it goes if you try it!