π§ AWS Account Security Hub is not enabled - prod.logic.yaml π π’
- Contextual name: π§ prod.logic.yaml π π’
- ID:
/ce/ca/aws/account/security-hub/prod.logic.yaml
- Located in: π AWS Account Security Hub is not enabled π’
Flagsβ
- π’ Logic test success
- π’ Logic with test data
- π Logic without extracts
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π AWS Account | CA10__CaAwsAccount__c | 1 | 1 | 11 |
Usesβ
- π§ͺ test-data.json
Test Results π’β
Generated at: 2025-04-24T23:44:14.012051842Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 199 | βοΈ CA10A1__AWS_Security_Hubs__r.has(COMPLIANT) | βοΈ null |
π’ | test2 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | test3 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/account/security-hub/policy.yaml | A5489B2CA5FFEEA6F7078609BE07AFD9 |
Open | /ce/ca/aws/account/security-hub/prod.logic.yaml | E9072C659E30F85B4B0E176D6ACFECFD |
Open | /ce/ca/aws/account/security-hub/test-data.json | 6547719279B6088D0E135CCC1DC2A1DB |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/aws/account/security-hub/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/account/security-hub/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/account/security-hub/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/account/security-hub/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/aws/account/security-hub/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsAccount__c"
testData:
- file: "test-data.json"
conditions:
- status: "COMPLIANT"
currentStateMessage: "Security Hub is enabled."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10A1__AWS_Security_Hubs__r"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Security Hub is disabled."
remediationMessage: "Consider enabling Security Hub in all regions."
relatedLists:
- relationshipName: "CA10A1__AWS_Security_Hubs__r"
conditions: []
otherwise:
status: "COMPLIANT"
currentStateMessage: "Security Hub is enabled."