This repository contains code that streaming export users can use to set up an AWS Lambda function that applies compression metadata to compressed, exported payloads before they reach S3. This will inform AWS of the compression format, allowing the files to be automatically decompressed when downloaded. Do note that this function only works for streaming export to S3 with GZIP compression enabled.
To get the ZIP file required to set up this function, follow these steps:
- Clone this repository.
- Make any changes you would like to the code.
- Run these commands from the within this repository's root directory:
cd MetadataSettingLambdaFunction ./gradlew buildZip
The resulting ZIP file will be located in MetadataSettingLambdaFunction/build/distributions
.