Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1 KB

README.md

File metadata and controls

37 lines (25 loc) · 1 KB

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.