Skip to content

Lambda function that compressess a given S3 file and saves the output back to S3.

License

Notifications You must be signed in to change notification settings

carvantes/lambda-s3-zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lambda-s3-zip

Lambda function that compressess a given S3 file and saves the output back to S3.

It uses streams to download, compress and upload files, allowing it to process files larger than the lambda memory limit.

Installation Instructions

  1. Create an AWS account if you do not already have one and login
  2. Go to the app's page on the Serverless Application Repository and click "Deploy"

App Outputs

  1. lambdaS3Zip - Lambda Function Name.
  2. lambdaS3ZipArn - Lambda Function ARN.

Usage

Input event:

{
    "Bucket":STRING_VALUE, /* required */
    "Key":STRING_VALUE,    /* required */
    "Destination":{
        "Bucket":STRING_VALUE,
        "Key":STRING_VALUE
    }
}

If Destination is not present, the zipped file will be saved to:

s3://{Bucket}/{Key}.zip

License Summary

This code is made available under the MIT license. See the LICENSE file.

About

Lambda function that compressess a given S3 file and saves the output back to S3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published