https://github.com/bhoudu/zambda
Simple CLI to produce zip files for AWS Lambda
https://github.com/bhoudu/zambda
aws-lambda cli lambda typescript zip
Last synced: 11 months ago
JSON representation
Simple CLI to produce zip files for AWS Lambda
- Host: GitHub
- URL: https://github.com/bhoudu/zambda
- Owner: bhoudu
- License: bsd-3-clause
- Created: 2022-01-23T14:37:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-04T05:29:29.000Z (over 3 years ago)
- Last Synced: 2025-07-13T06:21:31.963Z (11 months ago)
- Topics: aws-lambda, cli, lambda, typescript, zip
- Language: TypeScript
- Homepage:
- Size: 1.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zambda: zipping things for AWS Lambda
[](https://badge.fury.io/js/zambda) [](https://github.com/bhoudu/zambda/actions?query=branch%3Adevelop)
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.