Skip to main content

🧠 AWS WAF Rule Group has no WAF Rules - prod.logic.yaml🟠🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-10-25T12:02:04.652787102Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10A1__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ not(setOfText(['caAwsWafv2RuleGroupGlobal', 'caAwsWafv2RuleGroupRegional']).contains(RecordType.DeveloperName))βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ CA10A1__AWS_WAF_Rules__r.hasNo(COMPLIANT)βœ”οΈ null
🟒test4βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/waf/rule-group-without-rules/policy.yaml364F618C170A78759A1C3A772DC9E488
Open/ce/ca/aws/waf/rule-group-without-rules/prod.logic.yaml9E22D6E2804DE7A033EECE69232EF747
Open/ce/ca/aws/waf/rule-group-without-rules/test-data.jsonC6413B03EB5163B704CF13D817D57864

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/waf/rule-group-without-rules/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/waf/rule-group-without-rules/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/waf/rule-group-without-rules/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/waf/rule-group-without-rules/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/waf/rule-group-without-rules/prod.logic.yaml

Content​

Open File

---
inputType: "CA10A1__CaAwsWafRuleGroup__c"
recordTypes:
- "caAwsWafv2RuleGroupGlobal"
- "caAwsWafv2RuleGroupRegional"
testData:
- file: "test-data.json"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The AWS WAF Rule Group does not have any rules."
remediationMessage: "Add at least one rule to the rule group or delete the rule group if it is not needed."
check:
RELATED_LIST_HAS_NO:
status: "COMPLIANT"
relationshipName: "CA10A1__AWS_WAF_Rules__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The AWS WAF Rule Group has at least one rule."
relatedLists:
- relationshipName: "CA10A1__AWS_WAF_Rules__r"
conditions: []
otherwise:
status: "COMPLIANT"
currentStateMessage: "This is a rule within the group."