Add lambda-s3-download pattern for streaming URL downloads to S3#2956
Open
roblOnTour wants to merge 1 commit intoaws-samples:mainfrom
Open
Add lambda-s3-download pattern for streaming URL downloads to S3#2956roblOnTour wants to merge 1 commit intoaws-samples:mainfrom
roblOnTour wants to merge 1 commit intoaws-samples:mainfrom
Conversation
biswanathmukherjee
requested changes
Feb 26, 2026
Contributor
biswanathmukherjee
left a comment
There was a problem hiding this comment.
There may be more review comments :)
| @@ -0,0 +1,96 @@ | |||
| # Lambda S3 Download | |||
Contributor
There was a problem hiding this comment.
- Please provide a meaningful title.
- Also use the full AWS Service name e.g. AWS Lambda function, Amazon S3
| @@ -0,0 +1,96 @@ | |||
| # Lambda S3 Download | |||
|
|
|||
| This pattern deploys a Lambda function that downloads a file from a URL and uploads it to an S3 bucket using multipart upload. It streams the file in configurable chunks through `/tmp`, making it capable of handling files larger than Lambda's memory and storage limits. | |||
Contributor
There was a problem hiding this comment.
The description says it is 'upload' to S3 functionality, however, the folder name has 'download'. Sounds contradicting?
| aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus" | ||
| ``` | ||
| ---- | ||
| Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| @@ -0,0 +1,60 @@ | |||
| { | |||
| "title": "Lambda S3 Download", | |||
Contributor
There was a problem hiding this comment.
- Please provide a meaningful title.
- Also use the full AWS Service name e.g. AWS Lambda function, Amazon S3
- Title should be <= 70 char long
| ``` | ||
| 1. Build the application: | ||
| ``` | ||
| sam build |
Contributor
There was a problem hiding this comment.
Build failed with the following error
python3.12 architecture: x86_64 functions: DownloadFunction
Running PythonPipBuilder:ResolveDependencies
Build Failed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
N/A
Description of changes:
New pattern:
lambda-s3-downloadA Lambda function (Python 3.12) that downloads a file from a URL and uploads it to S3 using multipart upload with SHA256 checksums. The file is streamed in configurable chunks through
/tmp, allowing it to handle files larger than Lambda's memory limit.Features:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.