Skip to content

Nothing tracks deployed Lambda runtime versions: two are already stale (provided.al2, python3.11) and a runtime reaching EOL would be silent #716

Closed

Description

@scttfrdmn

Prompted by AWS ending support for Python 3.8 in Lambda. I surveyed every runtime we declare and every runtime we actually run.

The specific deprecation does not affect us: there is no Python 3.8 anywhere. Not in a template, not in CI, not in a Dockerfile, not in a deployed function. But the question could only be answered by querying AWS across accounts and regions by hand, and doing so turned up two already-stale runtimes and a structural gap that will make the next deprecation land the same way.

What we declare in source

7 × Runtime: provided.al2023      (Go — spawn's lambdas, spore-bot)
1 × Runtime: python3.12           (spore-host/deployment/cloudformation/portal-onboarding-role.yaml)
1 × Runtime: nodejs20.x           (spawn-ts/demo/portal/infra/portal-stack.yaml)

All current. The only declared Python runtime is 3.12.

What is actually deployed (spore-host-infra, us-east-1)

16 × provided.al2023
 1 × provided.al2      ← scheduler-handler
 1 × python3.11        ← github-oauth-bridge
 1 × nodejs20.x

Both outliers were last modified in January 2026 and neither is covered by the templates:

function runtime in source?
scheduler-handler provided.al2 referenced in cmd/schedule.go and self-hosted-stack.yaml, but no Runtime: is declared for it anywhere
github-oauth-bridge python3.11 not in any repo at all — zero source references

provided.al2 is the Amazon Linux 2 custom runtime, and it is on the deprecation path. Every other Go function moved to provided.al2023; this one did not, and nothing noticed because nothing compares deployed runtimes against anything.

python3.11 is not EOL today, but it is the only deployed Python and it is behind the 3.12 we declare elsewhere. It cannot be bumped by editing a template, because there is no template.

The actual problem

There is no inventory and no gate. To answer "are all our Lambdas on supported runtimes" I had to run lambda list-functions across two accounts and two regions and eyeball the output. That means:

  • a runtime reaching EOL is silent — AWS emails the account, nothing in the repo changes, and no CI job fails;
  • a function deployed by hand drifts invisibly, which is how both outliers happened;
  • the answer decays the moment it is written down, so a note in a doc is not a fix.

This is the same shape as #654 (spored and the lambdas never upgrade with the CLI and nothing warns about the skew) and belongs with it rather than being filed as a one-off bump.

Suggested, roughly in order of value

  1. A runtime census check — a small script or CI job that lists every Lambda across the accounts we own and fails if any runtime is not on an allowlist. That is the thing that would have caught both outliers in January, and it answers the question in one command next time a deprecation lands.
  2. Bring scheduler-handler to provided.al2023 and give it a declared Runtime: in the template that owns it, so it is reproducible rather than hand-maintained.
  3. Decide what github-oauth-bridge is. A deployed Lambda with no source is worse than a stale runtime — it cannot be reviewed, rebuilt or rolled back. Either import it into a repo with a template or retire it.
  4. Pin the allowlist to what we declare, so source and reality are compared rather than each being checked alone. Today portal-onboarding-role.yaml says 3.12 and the only deployed Python is 3.11, and nothing reconciles those two facts.

Not filing this as "upgrade off 3.8", because we are not on 3.8. The useful version of the request is the census.

Surveyed against spore-host-infra and spore-host-dev in us-east-1 and us-west-2; the dev account has no Lambdas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions