Skip to main content

🧠 AWS CloudFront Distribution Logging is not enabled - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• AWS CloudFront DistributionCA10__CaAwsDistribution__c417

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-07-08T23:23:02.284525929Z Open

ResultIdCondition IndexCondition TextRuntime 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​

FileMD5
Open/ce/ca/aws/cloudfront/distribution-logging/policy.yaml57B501D217EB19EA79BCFAE07C7C4087
Open/ce/ca/aws/cloudfront/distribution-logging/prod.logic.yaml3BE4C19AEBE36E461246579CC7381FE4
Open/types/CA10__CaAwsDistribution__c/object.extracts.yaml312E8E3ABFEE53092D8EF1E754EE76B1
Open/ce/ca/aws/cloudfront/distribution-logging/test-data.json68C147366A270B0FC2503DC0CB1C39C1

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​

Open File

---
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."