Commit 986113f
authored
fix(examples): move nginx-zip to provided.al2023, drop the PHP examples (#832)
* fix(examples): use provided.al2023 runtime in nginx-zip
`provided.al2` was deprecated on 2026-07-31 (creation disabled 2027-02-01,
updates 2027-03-03), so `sam validate --lint` flags it as W2531 and the
examples workflow fails.
Verified the example still works on AL2023 by mounting the Nginx123X86:12
layer contents at /opt in public.ecr.aws/lambda/provided:al2023: nginx 1.23.3
starts, `GET /` returns 200 and `GET /images/space.jpeg` returns the 1.3 MB
binary response with no errors logged. The layer's only bundled library is
libcrypt.so.1, which resolves from /opt/lib on the default LD_LIBRARY_PATH.
* chore(examples): drop the PHP examples
Both PHP examples were built on artifacts frozen in March 2023 that are tied to
Amazon Linux 2, and neither can move to AL2023 without those artifacts being
rebuilt:
- `php-zip` used the `Php82FpmNginx{X86,Arm}:13` layers. On `provided.al2023`
php-fpm still starts, but the extensions declared in `php/php.d/extensions.ini`
fail to load because they link against AL2-only libraries: `openssl`, `curl`
and `ftp` need `libssl.so.10`/`libcrypto.so.10` (OpenSSL 1.0.2), `awscrt` needs
`libcrypto.so.10`, `gd` needs `libpng15.so.15`, and `imagick` needs
`libfontconfig.so.1`. AL2023 ships OpenSSL 3.x, so a user extending the example
would silently lose HTTPS/TLS support.
- `php` (Docker) is based on `public.ecr.aws/awsguru/php:82.2023.3.11.1`, the same
AL2 build of PHP 8.2.
Rather than ship examples whose runtime is deprecated (`provided.al2`, creation
disabled 2027-02-01) or whose extension set is quietly broken, drop them. Neither
example was covered by the `test-image` or `test-zip` CI matrices, so no test
coverage is lost. `README.md` still points PHP users at Bref, and the guide still
lists Laravel on Lambda as a community example.1 parent 34d3a29 commit 986113f
28 files changed
Lines changed: 3 additions & 2859 deletions
File tree
- .github/workflows
- docs/guide/src/examples
- examples
- nginx-zip
- php-zip
- app
- public
- nginx/conf
- php
- etc
- php.d
- php
- app
- public
- nginx/conf
- php
- etc
- php.d
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments