Skip to content

download a list of files, compress them and upload them to s3 bucket

Notifications You must be signed in to change notification settings

gabrielcardetti/urls-zip-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

The main idea is to send a list of url with files to download, compress and upload them to s3 bucket, and then return the url of the zip file.

Flow
1. Send a POST request to /download with a list of urls.
2. The lambda function will trigger another lambda function.
3. The other lambda function will download the files and compress them into a zip file.
4. After the zip file is created, the lambda function will upload the zip file to s3 bucket.
5. The lambda function will send a email to the list of emails in the request body.

Example:

POST

{
    "attachments": [
        {
            "url": "https://test.pro/test/test/2701637",
            "name": "128_082022.pdf"
        }
    ],
    "emails": ["[email protected]"]
}

Response

{
    "message": "Success"
}

About

download a list of files, compress them and upload them to s3 bucket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published