LambdaZipBuilder
Download pip packages and create ./lambda_layer.zip
Optionally upload archive to s3 bucket
Requirements
| Name |
Version |
| archive |
>= 2.7.1 |
| aws |
~> 5.100.0 |
| null |
>= 3.2.4 |
Providers
| Name |
Version |
| archive |
>= 2.7.1 |
| aws |
~> 5.100.0 |
| null |
>= 3.2.4 |
Modules
No modules.
Resources
Inputs
| Name |
Description |
Type |
Default |
Required |
| pip_packages |
List of pip packages, separated by space |
string |
n/a |
yes |
| pip_path |
Path to pip. Defaults to /usr/bin/pip3 |
string |
"/usr/bin/pip3" |
no |
| s3_bucket_name |
Name of s3 bucket for storing lambda layer archive |
string |
null |
no |
| upload_archive_to_s3 |
Whether to upload layer archive to s3. Use this for zipped size >50M or unzipped size >250M. Limit is imposed by AWS API |
bool |
false |
no |
Outputs
| Name |
Description |
| archive_checksum |
Hash of archive |
| archive_path |
Full path to archive file |
| archive_size |
Size of archive |
| s3_object_hash |
S3 object hash, useful for triggering lambda layer update |
| s3_object_key |
S3 object key |
Authorship
This module was developed by xpk.