π§ AWS Account Multi-Region CloudTrail is not enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/account/multi-region-cloudtrail/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS Account
- π AWS CloudTrail Trail - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-02-10T22:32:28.207288271Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test2 | βοΈ 199 | βοΈ CA10__AWS_CloudTrail_Trails__r.has(COMPLIANT) | βοΈ null |
| π’ | test3 | βοΈ 200 | βοΈ otherwise | βοΈ null |
| π’ | test4 | βοΈ 200 | βοΈ otherwise | βοΈ null |
| π’ | test5 | βοΈ 200 | βοΈ otherwise | βοΈ null |
| π’ | test6 | βοΈ 200 | βοΈ otherwise | βοΈ null |
| π’ | test7 | βοΈ 200 | βοΈ otherwise | βοΈ null |
| π’ | test7 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/account/multi-region-cloudtrail/policy.yaml | 6BC957A5AC083B48F58B8A0AAB0A8D3B |
| Open | /ce/ca/aws/account/multi-region-cloudtrail/prod.logic.yaml | D02619E51B6DBF678FA58FC3C547A012 |
| Open | /ce/ca/aws/account/multi-region-cloudtrail/test-data.json | 0EA1BDF4C80F9A020776C988E85CA870 |
| Open | /types/CA10__CaAwsCloudTrailTrail__c/object.extracts.yaml | E81F4D5C3A3DF3406D05985DF80BF9C5 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/account/multi-region-cloudtrail/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/account/multi-region-cloudtrail/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/account/multi-region-cloudtrail/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/account/multi-region-cloudtrail/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/account/multi-region-cloudtrail/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsAccount__c"
testData:
- file: "test-data.json"
conditions:
- status: "COMPLIANT"
currentStateMessage: "This AWS account has a multi-Region CloudTrail enabled."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10__AWS_CloudTrail_Trails__r"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "This AWS account does not have a multi-Region CloudTrail enabled."
relatedLists:
- relationshipName: "CA10__AWS_CloudTrail_Trails__r"
importExtracts:
- file: "/types/CA10__CaAwsCloudTrailTrail__c/object.extracts.yaml"
conditions:
- status: "COMPLIANT"
currentStateMessage: "This CloudTrail is multi-Region and logging."
check:
AND:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10__multiRegionTrail__c"
right:
BOOLEAN: true
- IS_EQUAL:
left:
EXTRACT: "CA10__isLogging__c"
right:
BOOLEAN: true
- IS_EQUAL:
left:
EXTRACT: "caJsonText__eventSelectorsJsonReadWriteType__c"
right:
TEXT: "All"
- IS_EQUAL:
left:
EXTRACT: "caJsonBoolean__eventSelectorsJsonIncludeManagementEvents__c"
right:
BOOLEAN: true
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "This CloudTrail is not multi-Region or not logging."
remediationMessage: "Enable this CloudTrail as a multi-Region trail."