File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Serverless infrastructure.
1212
1313Example
1414-------
15+ Put this code in a file called * Greet.class.php* :
1516
1617``` php
1718use com\amazon\aws\lambda\Handler;
@@ -80,7 +81,7 @@ $ aws iam create-role \
8081After ensuring your dependencies are up-to-date using composer, create the function:
8182
8283``` bash
83- $ zip -r task.zip class.pth src vendor
84+ $ xp lambda package Greet. class.php
8485$ aws lambda create-function \
8586 --function-name greet \
8687 --handler Greet \
@@ -110,7 +111,7 @@ Deploying changes
110111After having initially created your lambda, you can update its code as follows:
111112
112113``` bash
113- $ zip -r task.zip class.pth src vendor
114+ $ xp lambda package Greet. class.php
114115$ aws lambda update-function-code \
115116 --function-name greet \
116117 --zip-file fileb://./task.zip \
You can’t perform that action at this time.
0 commit comments