feat(lambda): allow per-runtime image reference overrides (#4552)

* feat(lambda): allow per-runtime image reference overrides

* test(lambda): cover runtime image YAML configuration

* docs(lambda): show quoted runtime image env key

* test(lambda): verify quoted runtime image env key

---------

Co-authored-by: Vamsi Akavarapu <16164447+vamsiak@users.noreply.github.com>
This commit is contained in:
vamsiakandVamsi Akavarapu authored and GitHub committed 2026-10-03 15:46:28 -05:00
1 parent b112c62949
commit f074dd3c40
9 files changed
+139

No files matched your search

+16
View File
@@ -1049,3 +1049,19 @@ of `{}` or with an empty `Filters` array clears any existing filters.
## Supported Runtimes
Any runtime that has an official AWS Lambda container image works with Floci (e.g. `nodejs22.x`, `python3.13`, `java21`, `go1.x`, `provided.al2023`).
By default, Floci builds each runtime image reference from `floci.services.lambda.ecr-base-uri`
and the runtime tag. To pin one runtime to a full image reference, set
`floci.services.lambda.runtime-images` in the Floci configuration:
```yaml
floci:
services:
lambda:
runtime-images:
"python3.12": "public.ecr.aws/lambda/python:3.12@sha256:<digest>"
```
Replace `<digest>` with the image's full SHA-256 digest. The override applies to
zip-based functions using that runtime; other runtimes retain their default images.
Custom image URI passthrough and image-package functions are unaffected.