zambda
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

Zambda: zipping things for AWS Lambda

npm version Build Status

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.

Readme

Keywords

Package Sidebar

Install

npm i zambda

Weekly Downloads

27

Version

1.2.2

License

BSD-3-Clause

Unpacked Size

128 kB

Total Files

19

Last publish

Collaborators

  • zenbeni