β Repository β π Compliance Engine β π CloudAware β π AWS β π GuardDuty β π‘οΈ GuardDuty is not enabled in all regionsπ’
π§ AWS GuardDuty is not enabled in all regions - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/guardduty/detector-not-enabled-in-all-regions/prod.logic.yaml
- Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS Account
- π AWS Account Region - object.extracts.yaml
- π AWS GuardDuty Detector - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2025-10-08T17:39:18.226071363Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 199 | βοΈ CA10__AWS_GuardDuty_Detectors__r.count(COMPLIANT) == CA10__AWS_Account_Regions__r.count(COMPLIANT) | βοΈ null |
π’ | test2 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/guardduty/detector-not-enabled-in-all-regions/policy.yaml | 43F4FB3E47F9AED2382F4E269EE0A477 |
Open | /ce/ca/aws/guardduty/detector-not-enabled-in-all-regions/prod.logic.yaml | 494F8261BAC4B1449F97D20FCA47B454 |
Open | /ce/ca/aws/guardduty/detector-not-enabled-in-all-regions/test-data.json | 5D71D7D67F6EBA69009EBC0864D0E188 |
Open | /types/CA10__CaAwsAccountRegion__c/object.extracts.yaml | B5D54D4844B8E77238E14E730ABEE3C4 |
Open | /types/CA10__CaAwsGuardDutyDetector__c/object.extracts.yaml | B1458F9B9038182B01C83196ED7E48C8 |
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β
---
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."