π§ AWS CloudFront Distribution Logging is not enabled - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/aws/cloudfront/distribution-logging/prod.logic.yaml
- Located in: π AWS CloudFront Distribution Logging is not enabled π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π AWS CloudFront Distribution | CA10__CaAwsDistribution__c | 4 | 1 | 7 |
Usesβ
Test Results π’β
Generated at: 2025-07-08T23:23:02.284525929Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | test2 | βοΈ 199 | βοΈ extract('CA10__loggingEnabled__c') == false | βοΈ null |
π’ | test3 | βοΈ 199 | βοΈ extract('CA10__loggingEnabled__c') == false | βοΈ null |
π’ | test4 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/cloudfront/distribution-logging/policy.yaml | 57B501D217EB19EA79BCFAE07C7C4087 |
Open | /ce/ca/aws/cloudfront/distribution-logging/prod.logic.yaml | 3BE4C19AEBE36E461246579CC7381FE4 |
Open | /types/CA10__CaAwsDistribution__c/object.extracts.yaml | 312E8E3ABFEE53092D8EF1E754EE76B1 |
Open | /ce/ca/aws/cloudfront/distribution-logging/test-data.json | 68C147366A270B0FC2503DC0CB1C39C1 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/aws/cloudfront/distribution-logging/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/cloudfront/distribution-logging/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/cloudfront/distribution-logging/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/cloudfront/distribution-logging/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/aws/cloudfront/distribution-logging/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsDistribution__c"
importExtracts:
- file: "/types/CA10__CaAwsDistribution__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The CloudFront Distribution standard logging is not enabled."
remediationMessage: "Consider enabling standard logging for the CloudFront Distribution."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__loggingEnabled__c"
right:
BOOLEAN: false
otherwise:
status: "COMPLIANT"
currentStateMessage: "The CloudFront Distribution standard logging is enabled."