π§ AWS CloudFront Web Distribution is not integrated with AWS WAF - prod.logic.yamlπ π’
- Contextual name: π§ prod.logic.yamlπ π’
- ID:
/ce/ca/aws/cloudfront/distribution-waf-integration/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with test data
- π Logic without extracts
Usesβ
- π AWS CloudFront Distribution
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-01-31T12:01:39.535637094Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 299 | βοΈ isEmptyLookup('CA10__wafV2WebAcl__r') && isEmptyLookup('CA10__webAcl__r') | βοΈ null |
| π’ | test2 | βοΈ 300 | βοΈ otherwise | βοΈ null |
| π’ | test3 | βοΈ 300 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/cloudfront/distribution-waf-integration/policy.yaml | 418D3E82D96947BBEDAC65DFEEB83D9A |
| Open | /ce/ca/aws/cloudfront/distribution-waf-integration/prod.logic.yaml | 4846B20CD944E114DFC84829B5B77FEA |
| Open | /ce/ca/aws/cloudfront/distribution-waf-integration/test-data.json | C3C63DB635EAE7B45C0D7F0974613A0B |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/cloudfront/distribution-waf-integration/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/cloudfront/distribution-waf-integration/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/cloudfront/distribution-waf-integration/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/cloudfront/distribution-waf-integration/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/cloudfront/distribution-waf-integration/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsDistribution__c"
testData:
- file: "test-data.json"
recordTypes:
- "caWebDistribution"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "AWS CloudFront web distribution isn't integrated with either AWS WAF Classic or AWS WAF web ACLs."
remediationMessage: "Consider associating a WAF web ACL with the CloudFront Distribution."
check:
AND:
args:
- IS_EMPTY_LOOKUP: "CA10__wafV2WebAcl__r"
- IS_EMPTY_LOOKUP: "CA10__webAcl__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The CloudFront Distribution is integrated with AWS WAF."