[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"pattern-lambda-s3-download":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":31,"level":32,"meta":33,"patternArch":34,"resources":48,"s3URL":6,"services":6,"stem":56,"testing":57,"videoId":6,"__hash__":60},"patterns\u002Fpatterns\u002Flambda-s3-download.json","AWS Lambda to Amazon S3 — URL File Downloader",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Frobert-meyer.json",{"text":13},[14,15],"sam build","sam deploy --guided","An AWS Lambda function that downloads a file from a URL and stores it in Amazon S3 using multipart upload with SHA256 checksums.","json","AWS SAM",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-s3-download","serverless-patterns\u002Flambda-s3-download","lambda-s3-download","template.yaml",{"headline":26,"text":27},"How it works",[28,29,30],"This pattern deploys an AWS Lambda function that streams a file from a URL and stores it in Amazon S3 using multipart upload.","The file is downloaded in configurable chunks (default 512 MB, clamped between 5 MB and 5 GB) and written to \u002Ftmp before being uploaded as individual parts. Each chunk is cleaned up from \u002Ftmp after upload, allowing the function to handle files larger than Lambda's memory or ephemeral storage limits.","SHA256 checksums are calculated for each part and verified on completion. If any step fails, the multipart upload is automatically aborted to avoid orphaned parts.","Python","300",{},{"icon1":35,"icon2":40,"line1":44},{"x":36,"y":37,"service":38,"label":39},20,50,"lambda","AWS Lambda",{"x":41,"y":37,"service":42,"label":43},80,"s3","Amazon S3",{"from":45,"to":46,"label":47},"icon1","icon2","Stream",{"bullets":49},[50,53],{"text":51,"link":52},"S3 Multipart Upload Overview","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fmpuoverview.html",{"text":54,"link":55},"AWS Lambda - Configuring Ephemeral Storage","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fconfiguration-ephemeral-storage.html","patterns\u002Flambda-s3-download",{"text":58},[59],"See the GitHub repo for detailed testing instructions.","SmXqUL6Sm-vMR9n2tF8FGKVqBQltoLZ2t-QJDrVmv1s",1778846886499]