1- # Usage
1+ # aws-lambda-deploy
2+ ## Usage
3+
4+ ```
5+ gald [command] [option]
6+ ```
27
38There are 3 commands available
49```
5- node-lambda init
6- node-lambda test
7- node-lambda deploy
10+ gald init
11+ gald test
12+ gald deploy
813```
914### Commands
1015
@@ -15,18 +20,37 @@ files that provide information
1520to the module about
1621the AWS Lambda function.
1722
23+ After running ` init ` you should consider
24+ adding ` lambda-secrets.json `
25+ to your ` .gitignore ` .
26+
1827#### test
1928
20- Executa all defined tests in ` lambda-test.json `
29+ Execute all defined tests in ` lambda-test.json `
2130or a different JSON file.
2231
2332```
24- node-lambda test [optional json file]
33+ gald test [optional json file]
2534```
2635
2736#### deploy
2837
2938Deploys the Lambda function to AWS Lambda.
30- In case the Lambda funciton does not exist
39+ In case the Lambda function does not exist
3140or the configuration has been changed,
3241the user will be notified.
42+
43+ Deploy looks for the archive defined in
44+ ` lambda-config.json ` under the property ` archiveName ` .
45+ Your build system will have to provide a zip file
46+ with the necessary components
47+ for the AWS Lambda function.
48+
49+ For example, have a build script that looks like this:
50+ ```
51+ zip -r -9 archive.zip handler.js
52+ ```
53+ If your AWS Lambda function depends on other packages,
54+ make sure to include the ` node_modules ` folder,
55+ with the dependencies installed,
56+ in your zip file.
0 commit comments