You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Lambda Function Handler property specifies the location of the the script executed in response to an incoming API Gateway request.
23
23
24
24
##### Extensions
25
-
Extensions can be built using the lambci/lambda:build-nodejs8.10 Docker image. It is recommended that extensions be built into a Lambda Layer in /lib/php/7.1/modules. Then, in a php.ini file in the Lambda Function root directory put:
26
-
27
-
```ini
28
-
extension_dir=/opt/lib/php/7.1/modules
29
-
extension=...
30
-
```
31
-
32
25
The following extensions are built into the layer and available in /opt/lib/php/7.1/modules:
33
26
34
27
```
@@ -60,6 +53,14 @@ xsl.so
60
53
zip.so
61
54
```
62
55
56
+
These extensions are not loaded by default. You must add the extension to your php.ini file to use it:
57
+
58
+
```ini
59
+
extension=json.so
60
+
```
61
+
62
+
Extensions can be built using the lambci/lambda:build-nodejs8.10 Docker image. It is recommended that custom extensions be provided by a separate Lambda Layer with the extension .so files placed in /lib/php/7.1/modules/ so they can be loaded alongside the built-in extensions listed above.
63
+
63
64
#### Example
64
65
Let's create an AWS SAM PHP application. We suggest using [Stackery](https://stackery.io) to make this super simple. It automates all the scaffolding shown below. But you may also choose to roll your own application from scratch.
0 commit comments