Skip to content

arjunurs/aws-lambda-untar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-lambda-unzip

Unzip function for AWS Lambda

The function extracts tar.gz files and uploads files to the same S3 location. It should be waiting for S3 upload event.

Permissions

You need to give following permissions:

{
    "Effect": "Allow",
    "Action": [
        "s3:GetObject",
        "s3:PutObject",
        "s3:DeleteObject"
    ],
    "Resource": [
        "arn:aws:s3:::target-bucket"
    ]
}

Requirements

  • Python 3.6

License

See LICENSE

Configuring AWS Lambda via Terraform script

In order to automatically configure lambda, check terraform.tfvars and run the following command:

zip untar_lambda.zip -xi untar_lambda.py
terraform apply

About

Unzip function for AWS Lambda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HCL 62.1%
  • Python 37.9%