UNPKG

1.05 kBPlain TextView Raw
1#!/usr/bin/env node
2
3const program = require( "commander" );
4const utils = require( "../lib/utils" );
5
6console.log( "Running lambda..." );
7
8program
9 .version( "0.0.0" )
10 .option( "--name [name]", "STRING - The name of the Lambda to run" )
11 .option( "--event [event]", "STRING - (Default: undefined) - An event object to pass to the Lambda" )
12 .option( "--context [context]", "STRING - (Default: undefined) - A context object to pass to the Lambda" )
13 .option( "--env [env]", "STRING (Default: live) - The environment you want to run in", "live" )
14 .option( "--local", "BOOLEAN (Default: false) Run the local version of the Lambda", true )
15 .option( "--aws_profile [name]", "STRING - (Default: undefined) - The AWS profile name to use for interacting with AWS" )
16 .option( "--use_bastion", "BOOLEAN (Default: false) Flag to tell Colly to authenticate you against a bastion service before interacting with AWS" )
17 .parse( process.argv );
18
19program.local = program.local || false;
20
21utils.setOptions( program );
22
23require( "../lib/run-lambda" ).init();
\No newline at end of file