Skip to content

Commit 88ac638

Browse files
committed
Replace zip command with xp lambda package
1 parent 3598ff1 commit 88ac638

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Serverless infrastructure.
1212

1313
Example
1414
-------
15+
Put this code in a file called *Greet.class.php*:
1516

1617
```php
1718
use com\amazon\aws\lambda\Handler;
@@ -80,7 +81,7 @@ $ aws iam create-role \
8081
After 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
110111
After 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 \

0 commit comments

Comments
 (0)