Terraform module to deploy a Lambda function to automatically extract zip files in an S3 bucket.
By default the Lambda function is run when a file is created in the specified S3 bucket.
module s3-unzip {
source = "robbytaylor/s3-unzip/aws"
version = "0.3.0"
dest_prefix = "extracted/"
dest_key = "$zipFilename/$filename.$extension"
src_bucket = "files.robbytaylor.io"
src_prefix = "zip/"
}
module s3-unzip {
source = "robbytaylor/s3-unzip/aws"
version = "0.3.0"
dest_bucket = "js.robbytaylor.io"
src_bucket = "zip.robbytaylor.io"
match_regex = "/^[^/]+.js$/"
}
module s3-unzip {
source = "robbytaylor/s3-unzip/aws"
version = "0.3.0"
dest_key = "$zipFilename.$extension"
src_bucket = "code.robbytaylor.io"
src_prefix = "zip/"
match_regex = "/^[^/]+.js$/"
}
module s3-unzip {
source = "robbytaylor/s3-unzip/aws"
version = "0.3.0"
dest_prefix = "extracted/"
dest_key = "$zipFilename/$filename.$extension"
src_bucket = "files.robbytaylor.io"
src_prefix = "zip/"
delete_source = true
}