Skip to main content

🧠 AWS Lambda Function is not in a VPC - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-01-17T12:02:54.266128256Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ CA10__AWS_Lambda_Function_Versions__r.has(COMPLIANT)βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ CA10__vpcId__c.isEmpty()βœ”οΈ null
🟒test4βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/lambda/function-in-vpc/policy.yaml73EF365A92A37F231215FD6419C2782B
Open/ce/ca/aws/lambda/function-in-vpc/prod.logic.yaml5F542DC6B79549AA398A670F80B61043
Open/ce/ca/aws/lambda/function-in-vpc/test-data.jsonFB35F5D60E590F55578AD9A5F7D76125
Open/types/CA10__CaAwsLambdaFunction__c/object.extracts.yamlAC42D0E20DDB5A13477C5EE7A9A969D6

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/lambda/function-in-vpc/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/lambda/function-in-vpc/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/lambda/function-in-vpc/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/lambda/function-in-vpc/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/lambda/function-in-vpc/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsLambdaFunction__c"
importExtracts:
- file: "/types/CA10__CaAwsLambdaFunction__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "Lambda@Edge functions do not support VPC association."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10__AWS_Lambda_Function_Versions__r"
- status: "INCOMPLIANT"
currentStateMessage: "The Lambda function is not associated with a VPC."
remediationMessage: "Configure the Lambda function to connect to a VPC."
check:
IS_EMPTY:
arg:
FIELD:
path: "CA10__vpcId__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Lambda function is associated with a VPC."
relatedLists:
- relationshipName: "CA10__AWS_Lambda_Function_Versions__r"
conditions:
- status: "COMPLIANT"
currentStateMessage: "This is Lambda@Edge function."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10__AWS_CloudFront_Lambda_Func_Associations__r"
otherwise:
status: "INAPPLICABLE"
currentStateMessage: "This function version does not have an association with CloudFront."
relatedLists:
- relationshipName: "CA10__AWS_CloudFront_Lambda_Func_Associations__r"
conditions: []
otherwise:
status: "COMPLIANT"
currentStateMessage: "This is Lambda@Edge function."