Skip to main content

⭐ Repository β†’ πŸ“ Compliance Engine β†’ πŸ“ CloudAware β†’ πŸ“ AWS β†’ πŸ“ GuardDuty β†’ πŸ›‘οΈ GuardDuty is not enabled in all regions🟒

🧠 AWS GuardDuty is not enabled in all regions - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-10-08T17:39:18.226071363Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 199βœ”οΈ CA10__AWS_GuardDuty_Detectors__r.count(COMPLIANT) == CA10__AWS_Account_Regions__r.count(COMPLIANT)βœ”οΈ null
🟒test2βœ”οΈ 200βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/guardduty/detector-not-enabled-in-all-regions/policy.yaml43F4FB3E47F9AED2382F4E269EE0A477
Open/ce/ca/aws/guardduty/detector-not-enabled-in-all-regions/prod.logic.yaml494F8261BAC4B1449F97D20FCA47B454
Open/ce/ca/aws/guardduty/detector-not-enabled-in-all-regions/test-data.json5D71D7D67F6EBA69009EBC0864D0E188
Open/types/CA10__CaAwsAccountRegion__c/object.extracts.yamlB5D54D4844B8E77238E14E730ABEE3C4
Open/types/CA10__CaAwsGuardDutyDetector__c/object.extracts.yamlB1458F9B9038182B01C83196ED7E48C8

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/guardduty/detector-not-enabled-in-all-regions/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/guardduty/detector-not-enabled-in-all-regions/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/guardduty/detector-not-enabled-in-all-regions/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/guardduty/detector-not-enabled-in-all-regions/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/guardduty/detector-not-enabled-in-all-regions/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsAccount__c"
testData:
- file: "test-data.json"
conditions:
- status: "COMPLIANT"
currentStateMessage: "GuardDuty is enabled for all active regions."
check:
IS_EQUAL:
left:
RELATED_LIST_COUNT:
status: "COMPLIANT"
relationshipName: "CA10__AWS_GuardDuty_Detectors__r"
right:
RELATED_LIST_COUNT:
status: "COMPLIANT"
relationshipName: "CA10__AWS_Account_Regions__r"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "GuardDuty is not enabled for all active regions."
remediationMessage: "Consider enabling GuardDuty in each active region to ensure full threat detection coverage."
relatedLists:
- relationshipName: "CA10__AWS_GuardDuty_Detectors__r"
importExtracts:
- file: /types/CA10__CaAwsGuardDutyDetector__c/object.extracts.yaml
conditions:
- status: "COMPLIANT"
currentStateMessage: "Active AWS GuardDuty Detector."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "ENABLED"
otherwise:
status: "INAPPLICABLE"
currentStateMessage: "This GuardDuty detector is not active."
- relationshipName: "CA10__AWS_Account_Regions__r"
importExtracts:
- file: /types/CA10__CaAwsAccountRegion__c/object.extracts.yaml
conditions:
- status: "COMPLIANT"
currentStateMessage: "Active AWS Account Region."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "not-opted-in"
otherwise:
status: "INAPPLICABLE"
currentStateMessage: "This AWS Account Region is not active."