π§ AWS Lambda Function Runtime is deprecated - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/lambda/function-runtime/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2026-01-31T12:02:06.135386360Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | 001 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | 002 | βοΈ 199 | βοΈ extract('CA10__packageType__c') == 'Image' | βοΈ null |
| π’ | 003 | βοΈ 299 | βοΈ extract('CA10__runtime__c').containsAny(setOfText(['nodejs', 'dotnetcore2.0', 'dotnetcore1.0', 'nodejs6.10', 'nodejs4.3-edge', 'nodejs4.3', 'nodejs8.10', 'python2.7', 'ruby2.5', 'nodejs10.x', 'dotnetcore2.1', 'dotnet5.0', 'python3.6', 'nodejs12.x', 'dotnetcore3.1', 'python3.7', 'nodejs14.x', 'ruby2.7', 'provided', 'go1.x', 'java8', 'dotnet7', 'nodejs16.x', 'python3.8', 'dotnet6', 'nodejs18.x', 'python3.9'])) | βοΈ null |
| π’ | 004 | βοΈ 300 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/lambda/function-runtime/policy.yaml | 584C35F0D6794F3C898380F3C8C413B3 |
| Open | /ce/ca/aws/lambda/function-runtime/prod.logic.yaml | 097B72808DE8F9E8A1A442313E52DD71 |
| Open | /ce/ca/aws/lambda/function-runtime/test-data.json | B70DBB3F37998452FCF59466F5186914 |
| Open | /types/CA10__CaAwsLambdaFunction__c/object.extracts.yaml | 76AAEC535F0E5F244F3303D8C3C2C9CE |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/lambda/function-runtime/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/lambda/function-runtime/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/lambda/function-runtime/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/lambda/function-runtime/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/lambda/function-runtime/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsLambdaFunction__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsLambdaFunction__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This policy doesn't apply to Lambda functions created using a container image."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__packageType__c"
right:
TEXT: "Image"
- status: "INCOMPLIANT"
currentStateMessage: "The Lambda Function Runtime is in the list of deprecated runtimes."
remediationMessage: "Update the function to use a newer, supported runtime version."
check:
CONTAINS_ANY:
arg:
EXTRACT: "CA10__runtime__c"
search:
SET:
itemType: "TEXT"
items:
- "nodejs"
- "dotnetcore2.0"
- "dotnetcore1.0"
- "nodejs6.10"
- "nodejs4.3-edge"
- "nodejs4.3"
- "nodejs8.10"
- "python2.7"
- "ruby2.5"
- "nodejs10.x"
- "dotnetcore2.1"
- "dotnet5.0"
- "python3.6"
- "nodejs12.x"
- "dotnetcore3.1"
- "python3.7"
- "nodejs14.x"
- "ruby2.7"
- "provided"
- "go1.x"
- "java8"
- "dotnet7"
- "nodejs16.x"
- "python3.8"
- "dotnet6"
- "nodejs18.x"
- "python3.9"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Lambda function is using a supported runtime."