zambda
v1.2.2
Published
Produce zips for AWS lambda the easy way
Downloads
111
Readme
Zambda: zipping things for AWS Lambda
Zambda is a basic CLI to package files in a zip based on a JSON configuration file.
Usage
Install zambda with yarn or npm
yarn install -g zambda
Write a JSON zambda configuration file lambda_handler.zambda.json
for instance.
{
"workDir": "zambda-dist",
"zip": {
"name": "my_lambda.zip",
},
"folders": [
"config"
],
"files": [
{
"source": "webpack-build/lambda_handler.js",
"destination": "handler.js"
},
{
"source": "webpack-build/lambda.handler.js.map",
"destination": "handler.js.map"
},
{
"source": "resources/myfile.splash"
}
]
}
Run zambda with your conf file as parameter.
zambda lambda_handler.zambda.json
This will procuce a zip file my_lambda.zip
in zambda-dist
folder as a result.