AWS Lambda Python 3.8 runtime is end-of-life
End of life as of 2024-10-14. Replacement: python3.13 or python3.12. Source: AWS Lambda runtimes.
Check a version:
evergreen check pkg:generic/aws-lambda-runtime/python3.8
The AWS Lambda runtimes table lists python3.8 under Deprecated runtimes with deprecation date 2024-10-14. AWS no longer applies security or other updates to that managed runtime.
Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>
| Status | End of life |
| Severity | high |
| Ecosystem | serverless |
| Component | pkg:generic/aws-lambda-runtime/python3.8 |
| Affected versions | vers:semver/* |
| Date from the source | 2024-10-14 |
| Replacement | python3.13 or python3.12 |
| Evidence last seen | 2026-10-21 |
| Reviewed | 2026-10-21 by arminazimi |
| Review due | 2027-01-19 (90 days after the last review) |
| Rule ID | serverless.aws-lambda.python3.8 |
Sources
- AWS Lambda runtimes (accessed 2026-10-21)
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
- Raise the AWS Lambda runtime. Change the reported Runtime (or provider.runtime / terraform runtime) from python3.8 to a supported AWS Lambda Python identifier (see the replacement).
- Align other runtime surfaces. 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.8.
Verification
sam validate || serverless print || terraform validate: Validate the updated SAM, Serverless Framework, or Terraform declaration before deploy.
Detected by
The serverless detector. See Detectors and Compatibility.
Related
Same ecosystem
- AWS Lambda .NET 10 runtime reaches end of life on 2028-11-14
- AWS Lambda .NET 5 (container only) runtime is end-of-life
- AWS Lambda .NET 6 runtime is end-of-life
- AWS Lambda .NET 7 (container only) runtime is end-of-life
- AWS Lambda .NET 8 runtime reaches end of life on 2026-11-10
- AWS Lambda .NET 9 (container only) runtime reaches end of life on 2026-11-10
- AWS Lambda .NET Core 1.0 runtime is end-of-life
- AWS Lambda .NET Core 2.0 runtime is end-of-life
Data
This page is generated from registry/serverless.json, rule serverless.aws-lambda.python3.8, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.
Last updated