π‘οΈ 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
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 that are using runtimes which AWS has designated as deprecated.
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β
Using deprecated runtimes introduces significant security and operational risks. Deprecated runtimes no longer receive security patches for the programming language or the underlying operating system. In addition, AWS may restrict the creation of new functions or updates to existing functions that rely on deprecated runtimes. New Lambda features, SDK updates, and AWS service integrations may also be incompatible with older runtimes.
Maintaining supported, up-to-date runtimes helps ensure that serverless applications remain secure, reliable, and fully supported by AWS.
Impactβ
Known vulnerabilities in outdated language versions or operating system libraries will remain unpatched, increasing the risk of exploitation by malicious actors.
... see more
Remediationβ
Remediationβ
Migrate the Lambda Function to a Supported Runtimeβ
When an AWS Lambda runtime is deprecated, AWS blocks the creation of new functions and the updating of existing functions that use the deprecated runtime shortly after deprecation. As a result, remediation typically requires creating a new Lambda function using a supported runtime.
From Command Lineβ
Review the list of supported AWS Lambda runtimes and select the appropriate target runtime version: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
Update the function code to be compatible with the selected runtime. This may include modifying language syntax, replacing deprecated APIs, and updating third-party dependencies or Lambda layers.
Create a new Lambda function using the updated code and a supported runtime:
aws lambda create-function \
--function-name {{new-function-name}} \
--runtime {{latest-runtime-version}} \... see more