{
  "schemaVersion": "ebb.rule.v1",
  "id": "serverless.aws-lambda.python3.10",
  "ecosystem": "serverless",
  "purl": "pkg:generic/aws-lambda-runtime/python3.10",
  "affectedVersions": "vers:semver/*",
  "event": "end-of-life",
  "severity": "high",
  "title": "AWS Lambda Python 3.10 runtime is end-of-life",
  "summary": "The AWS Lambda runtimes table lists python3.10 under Deprecated runtimes with deprecation date 2026-10-31. AWS no longer applies security or other updates to that managed runtime.",
  "replacement": "python3.14 or python3.13",
  "deadline": "2026-10-31",
  "sources": [
    {
      "title": "AWS Lambda runtimes",
      "url": "https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html",
      "accessedAt": "2026-11-07"
    }
  ],
  "provenance": {
    "observedAt": "2026-11-07",
    "reviewedAt": "2026-11-07",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Keep provider.runtime, Globals.Function.Runtime, per-function Runtime, and Terraform aws_lambda_function.runtime on one AWS Lambda runtime identifier that AWS still supports.",
      "Raising the managed runtime can require Python language and dependency changes; confirm handlers and native modules run on the replacement before deploying."
    ],
    "steps": [
      {
        "id": "raise-lambda-runtime",
        "title": "Raise the AWS Lambda runtime",
        "instructions": "Change the reported Runtime (or provider.runtime / terraform runtime) from python3.10 to a supported AWS Lambda Python identifier (see the replacement).",
        "targets": "declaration"
      },
      {
        "id": "align-lambda-runtime-surfaces",
        "title": "Align other runtime surfaces",
        "instructions": "Update every other SAM/CloudFormation Globals or function Runtime, serverless.yml provider or function runtime, Terraform aws_lambda_function.runtime, and CI deploy config that still pins python3.10.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "sam validate || serverless print || terraform validate",
        "purpose": "Validate the updated SAM, Serverless Framework, or Terraform declaration before deploy."
      }
    ]
  }
}
