Skip to content

About

The Lambda function S3ObjectLambdaDecompression, is equipped to decompress objects stored in S3 in one of six compressed file formats including bzip2, gzip, snappy, zlib, zstandard and ZIP.

Resources

Code of conduct

Contributing

Security policy

Stars

20 stars

Watchers

5 watching

Forks

Repository files navigation

A quick tour of this repository

  • lambda-code : contains the source code for the six lambda functions, with each sub-directory containing the function itself, a unit-test file, a Makefile containing build instructions and a requirements.txt containing the libraries to be pip installed
  • template.yaml : contains the SAM template to build and launch the six lambda functions as well an an IAM role
  • buildspec.yaml : contains instructions for AWS CodeBuild to build the functions. This is required to create a pipeline

How to use this repository

  1. Clone and navigate to the repository
  2. Build the functions:
    sam build --use-container
    
    This pulls in the required packages and native libraries and creates the deployment packages in .aws-sam/build. It also runs the unit tests. Note the --use-container argument is necessary because the native libraries must be pulled in using a docker image resembling the runtime environment of AWS Lambda
  3. Deploy the stack:
    sam deploy --guided --template-file .aws-sam/build/template.yaml --capabilities CAPABILITY_NAMED_IAM
    
    The CAPABILITY_NAMED_IAM capability is needed to deploy any SAM stack or CloudFormation stack that creates IAM roles

(Clicking the "deploy" button on the Serverless Application Repository is equivalent to cloning and running the commands above)

About

The Lambda function S3ObjectLambdaDecompression, is equipped to decompress objects stored in S3 in one of six compressed file formats including bzip2, gzip, snappy, zlib, zstandard and ZIP.

Resources

Code of conduct

Contributing

Security policy

Stars

20 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages