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