Skip to main content

🧠 AWS CloudFront Web Distribution Default Root Object is not configured - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:32:34.451775279Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 299βœ”οΈ extract('CA10__defaultRootObject__c').isEmpty()βœ”οΈ null
🟒test3βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/cloudfront/distribution-default-root-object/policy.yamlA733811FF5494CBE07BA7BD6631935EA
Open/ce/ca/aws/cloudfront/distribution-default-root-object/prod.logic.yaml4E9D3AEB65817A2B763955EE634281F6
Open/ce/ca/aws/cloudfront/distribution-default-root-object/test-data.json42957694E2E6953D3EAC8997B6AF03C1
Open/types/CA10__CaAwsDistribution__c/object.extracts.yaml9BBABDA14FE5FD983E28F77F5CC80BF9

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/cloudfront/distribution-default-root-object/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/cloudfront/distribution-default-root-object/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/cloudfront/distribution-default-root-object/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/cloudfront/distribution-default-root-object/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/cloudfront/distribution-default-root-object/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsDistribution__c"
importExtracts:
- file: "/types/CA10__CaAwsDistribution__c/object.extracts.yaml"
testData:
- file: "test-data.json"
recordTypes:
- "caWebDistribution"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The CloudFront distribution does not have a default root object configured."
remediationMessage: "Specify a default root object to avoid exposing distribution contents."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__defaultRootObject__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The CloudFront distribution has a default root object configured."