# Command: build aws

Command kl build aws creates lambda binaries that can be deployed to the aws account. The output of this command is zipped file containing node js lambda code and its dependant libraries.

# Usage

Usage: kl build aws [options]

Dependency: npm is required to install dependant packages.

Command will create aws lambda code, execute command: npm install --production and zip all necessary files.

Command does not change project files, instead it creates build sub directory and copies all required files.

Command analyzes package.json file, it copies all files specified in "files" array. It will also remove aws sdk dependency as it is not required for aws lambda.

Command performs flow validation, it will terminate build if errors have been found and display list of warnings if any found. See Build Errors for details.

# Options

  • -d, --project-directory The root of kumologica project directory. Defaults to process current working directory
  • -f, --flow-file-name kumologica flow file name, cli will search for it if not provided.
  • -z, --zip-file-name the name of zip file with lambda binaries for aws deployment. Defaults to "lambda.zip"

# Example: default build

Build lambda.zip file with lambda binaries, project files are in current working directory

$ kl build aws

# Example: custom zip file, project in subdirectory

Create HelloWorld.zip binaries from helloworld project located in subdirectory

$ kl build aws --project-directory ./helloworld --zip-file-name HelloWorld.zip