π§ AWS Account Config is not enabled in all regions - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/account/config-in-all-regions/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS Account
- π AWS Config Recorder - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-02-10T22:32:28.850129387Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test2 | βοΈ 199 | βοΈ CA10__AWS_Config_Settings__r.has(INCOMPLIANT) | βοΈ null |
| π’ | test3 | βοΈ 199 | βοΈ CA10__AWS_Config_Settings__r.has(INCOMPLIANT) | βοΈ null |
| π’ | test4 | βοΈ 199 | βοΈ CA10__AWS_Config_Settings__r.has(INCOMPLIANT) | βοΈ null |
| π’ | test5 | βοΈ 299 | βοΈ CA10__AWS_Config_Settings__r.has(COMPLIANT) | βοΈ null |
| π’ | test6 | βοΈ 399 | βοΈ CA10__AWS_Config_Settings__r.has(INAPPLICABLE) | βοΈ null |
| π’ | test7 | βοΈ 400 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/account/config-in-all-regions/policy.yaml | CDBE8308C62CF7AAAFD1ADB88A2D5C40 |
| Open | /ce/ca/aws/account/config-in-all-regions/prod.logic.yaml | 2FC9589421DCEF136AED8E682F014647 |
| Open | /ce/ca/aws/account/config-in-all-regions/test-data.json | B6755D8F585CD0FFB7927B5BA7C6E97B |
| Open | /types/CA10__CaAwsConfigRecorder__c/object.extracts.yaml | 2C6647BB9543EFA1F66FF477131CFCF0 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/account/config-in-all-regions/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/account/config-in-all-regions/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/account/config-in-all-regions/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/account/config-in-all-regions/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/account/config-in-all-regions/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsAccount__c"
testData:
- file: "test-data.json"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "AWS Config is not enabled in all regions."
remediationMessage: "Configure AWS Config in all regions."
check:
RELATED_LIST_HAS:
status: "INCOMPLIANT"
relationshipName: "CA10__AWS_Config_Settings__r"
- status: "COMPLIANT"
currentStateMessage: "AWS Config is enabled in all regions."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10__AWS_Config_Settings__r"
- status: "INCOMPLIANT"
currentStateMessage: "AWS Config does not have a recorder configured to include global resource types."
remediationMessage: "Configure at least one AWS Config recorder to include global resource types."
check:
RELATED_LIST_HAS:
status: "INAPPLICABLE"
relationshipName: "CA10__AWS_Config_Settings__r"
# There is a possibility that we don't have access to AWS Config Recorders
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "AWS Config is not enabled."
remediationMessage: "Enable AWS Config in all regions."
relatedLists:
- relationshipName: "CA10__AWS_Config_Settings__r"
importExtracts:
- file: "/types/CA10__CaAwsConfigRecorder__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "This AWS Config recorder is not configured correctly."
remediationMessage: "Reconfigure at least one AWS Config recorder to include global resource types."
check:
OR:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10__allSupported__c"
right:
BOOLEAN: false
- IS_EQUAL:
left:
EXTRACT: "CA10__recording__c"
right:
BOOLEAN: false
- NOT_EQUAL:
left:
EXTRACT: "CA10__lastStatus__c"
right:
TEXT: "SUCCESS"
# At least one recorder has to have a CA10__includeGlobalResourceTypes__c enabled
- status: "COMPLIANT"
currentStateMessage: "This AWS Config recorder is configured to include global resource types."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__includeGlobalResourceTypes__c"
right:
BOOLEAN: true
otherwise:
status: "INAPPLICABLE"
currentStateMessage: "This AWS Config recorder is configured correctly."