@@ -41,11 +41,15 @@ Initializes the `event.json`, `context.json`, `.env`, `deploy.env` files, and `e
4141```
4242$ node-lambda setup --help
4343
44- Usage: setup [options]
44+ Usage: setup [options]
4545
46- Options:
46+ Sets up the .env file.
4747
48- -h, --help output usage information
48+
49+ Options:
50+ -h, --help output usage information
51+ -j, --eventFile [event.json] Event JSON File
52+ -x, --contextFile [context.json] Context JSON File
4953```
5054
5155After running setup, it's a good idea to gitignore the generated ` event.json ` and ` .env ` files, as well as ` .lambda ` .
@@ -121,19 +125,20 @@ Bundles your application into a local zip file.
121125```
122126$ node-lambda package --help
123127
124- Usage: package [options]
128+ Usage: package|zip [options]
125129
126- Options:
130+ Create zipped package for Amazon Lambda deployment
127131
128- -h, --help output usage information
129- -A, --packageDirectory [build] Local Package Directory
130- -I, --dockerImage [] Docker image for npm install
131- -n, --functionName [node-lambda] Lambda FunctionName
132- -H, --handler [index.handler] Lambda Handler {index.handler}
133- -e, --environment [staging] Choose environment {development, staging, production}
134- -x, --excludeGlobs [] Add a space separated list of file(type)s to ignore (e.g. "*.json .env")
135- -D, --prebuiltDirectory [] Prebuilt directory
136132
133+ Options:
134+ -h, --help output usage information
135+ -A, --packageDirectory [build] Local Package Directory
136+ -I, --dockerImage [] Docker image for npm install
137+ -n, --functionName [node-lambda] Lambda FunctionName
138+ -H, --handler [index.handler] Lambda Handler {index.handler}
139+ -e, --environment [development] Choose environment {dev, staging, production}
140+ -x, --excludeGlobs [event.json] Space-separated glob pattern(s) for additional exclude files (e.g. "event.json dotenv.sample")
141+ -D, --prebuiltDirectory [] Prebuilt directory
137142```
138143
139144#### deploy
@@ -143,40 +148,44 @@ Bundles and deploys your application up to Amazon Lambda.
143148```
144149$ node-lambda deploy --help
145150
146- Usage: deploy [options]
147-
148- Options:
149-
150- -h, --help output usage information
151- -e, --environment [staging] Choose environment {development, staging, production}
152- -a, --accessKey [your_key] AWS Access Key
153- -s, --secretKey [your_secret] AWS Secret Key
154- -P, --profile [your_profile] AWS Profile
155- -k, --sessionToken [your_token] AWS Session Token
156- -r, --region [us-east-1] AWS Region(s)
157- -n, --functionName [node-lambda] Lambda FunctionName
158- -H, --handler [index.handler] Lambda Handler {index.handler}
159- -o, --role [your_role] Amazon Role ARN
160- -m, --memorySize [128] Lambda Memory Size
161- -t, --timeout [3] Lambda Timeout
162- -d, --description [missing] Lambda Description
163- -u, --runtime [nodejs6.10] Lambda Runtime {nodejs6.10, nodejs4.3}
164- -p, --publish [false] This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation
165- -L, --lambdaVersion [custom-version] Lambda Version
166- -f, --configFile [] Path to file holding secret environment variables (e.g. "deploy.env")
167- -b, --vpcSubnets [] VPC Subnet ID(s, comma separated list) for your Lambda Function, when using this, the below param is also required
168- -g, --vpcSecurityGroups [] VPC Security Group ID(s, comma separated list) for your Lambda Function, when using this, the above param is also required
169- -Q, --deadLetterConfigTargetArn [] Lambda DLQ resource
170- -T, --tracingConfig [] Lambda tracing settings
171- -R, --retentionInDays [] CloudWatchLogs retentionInDays settings
172- -A, --packageDirectory [] Local package directory
173- -I, --dockerImage [] Docker image for npm install
174- -S, --eventSourceFile [event_sources.json] Path to file holding event source mapping variables (e.g. "event_sources.json")
175- -x, --excludeGlobs [] Add a space separated list of file(type)s to ignore (e.g. "*.json .env")
176- -D, --prebuiltDirectory [] Prebuilt directory
177- -z, --deployZipfile [] Deploy zipfile
178- -T, --deployTimeout [120000] Deploy Timeout
179- -G, --sourceDirectory [.] Path to lambda source Directory (e.g. "./some-lambda")
151+ Usage: deploy [options]
152+
153+ Deploy your application to Amazon Lambda
154+
155+
156+ Options:
157+ -h, --help output usage information
158+ -e, --environment [development] Choose environment {dev, staging, production}
159+ -a, --accessKey [your_key] AWS Access Key
160+ -s, --secretKey [your_secret] AWS Secret Key
161+ -P, --profile [] AWS Profile
162+ -k, --sessionToken [] AWS Session Token
163+ -r, --region [us-east-1] AWS Region
164+ -n, --functionName [node-lambda] Lambda FunctionName
165+ -H, --handler [index.handler] Lambda Handler {index.handler}
166+ -o, --role [your_amazon_role] Amazon Role ARN
167+ -m, --memorySize [128] Lambda Memory Size
168+ -t, --timeout [3] Lambda Timeout
169+ -d, --description [missing] Lambda Description
170+ -u, --runtime [nodejs6.10] Lambda Runtime
171+ -p, --publish [false] Lambda Publish
172+ -L, --lambdaVersion [] Lambda Function Version
173+ -b, --vpcSubnets [] Lambda Function VPC Subnets
174+ -g, --vpcSecurityGroups [] Lambda VPC Security Group
175+ -K, --kmsKeyArn [] Lambda KMS Key ARN
176+ -Q, --deadLetterConfigTargetArn [] Lambda DLQ resource
177+ -T, --tracingConfig [] Lambda tracing settings
178+ -R, --retentionInDays [] CloudWatchLogs retentionInDays settings
179+ -A, --packageDirectory [build] Local Package Directory
180+ -G, --sourceDirectory [] Path to lambda source Directory (e.g. "./some-lambda")
181+ -I, --dockerImage [] Docker image for npm install
182+ -f, --configFile [] Path to file holding secret environment variables (e.g. "deploy.env")
183+ -S, --eventSourceFile [] Path to file holding event source mapping variables (e.g. "event_sources.json")
184+ -x, --excludeGlobs [event.json] Space-separated glob pattern(s) for additional exclude files (e.g. "event.json dotenv.sample")
185+ -D, --prebuiltDirectory [] Prebuilt directory
186+ -T, --deployTimeout [120000] Deploy Timeout
187+ -z, --deployZipfile [] Deploy zipfile
188+ -y, --proxy [] Proxy server
180189```
181190
182191## Custom Environment Variables
0 commit comments