π‘οΈ AWS Lambda Function Runtime is deprecatedπ’
- Contextual name: π‘οΈ Function Runtime is deprecatedπ’
- ID:
/ce/ca/aws/lambda/function-runtime - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
RELIABILITY
Statsβ
not available
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- AWS Security Hub: [Lambda.2] Lambda functions should use supported runtimes
- Cloud Conformity: Lambda Using Supported Runtime Environment
Descriptionβ
Descriptionβ
This policy identifies AWS Lambda functions whose configured runtime is past the AWS Lambda runtime deprecation date. It evaluates the Runtime on the AWS Lambda Function record for Zip deployments.
AWS Lambda supports multiple runtimes for various programming languages. Each runtime is tied to a specific version of the programming language and underlying operating system. When a language or operating system reaches its end of life (EOL), AWS deprecates the associated Lambda runtime.
Rationaleβ
AWS may stop providing security updates at runtime deprecation, and functions using a deprecated runtime are no longer eligible for technical support. Existing functions can remain invocable indefinitely but may encounter vulnerabilities, expired certificates, or other failures. Owners can address the finding by migrating to a supported runtime or safely retiring an obsolete function.
Deprecation, blocking function creation, and blocking function updates are separate stages. The console prevents creation and updates using a deprecated runtime at deprecation; CLI/API restrictions follow the published create/update-block dates, which AWS can delay. Those delays do not extend runtime support. For example, Python 3.10 is scheduled for deprecation on October 31, 2026; this policy flags it beginning November 1, 2026 UTC, even though its API create/update blocks are scheduled for 2027.
... see more
Remediationβ
Remediationβ
Migrate the configured function runtimeβ
Review the AWS Lambda runtime schedule and choose a generally available, supported target with sufficient remaining support. Use the Lambda-specific date rather than the upstream language or Amazon Linux end-of-life date alone. For
providedruntimes, upgrade the OS-only runtime and separately verify the support status of the custom language runtime, bootstrap, and libraries.Confirm the configured runtime and package type:
aws lambda get-function-configuration --function-name {{function-name}}Review the
RuntimeandPackageTypevalues. This policy assesses the function configuration and does not require an inventory of retained published versions.Update and test application code, dependencies, and layers for the selected runtime. Test representative events, permissions, native dependencies, architecture, networking, and error handling in a separate function or deployment environment before production changes.
... see more