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