π§ AWS Shield Advanced SRT access is not configured - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/shield/srt-access/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS Account
- π AWS Account - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2025-11-20T13:29:00.452787149Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 199 | βοΈ extract('CA10__status__c') != 'OK' | βοΈ null |
| π’ | test2 | βοΈ 299 | βοΈ extract('CA10__shieldAdvancedState__c') != 'ACTIVE' | βοΈ null |
| π’ | test3 | βοΈ 399 | βοΈ extract('CA10__shieldAdvancedSrtSupportConfigured__c') == 'No' | βοΈ null |
| π’ | test4 | βοΈ 201 | βοΈ CA10__shieldAdvancedState__c.delegatedTo(CA10__shieldAdvancedState__c).isEmpty() | βοΈ null |
| π’ | test5 | βοΈ 301 | βοΈ CA10__shieldAdvancedSrtSupportConfigured__c.delegatedTo(CA10__shieldAdvancedSrtSupportConfigured__c).isEmpty() | βοΈ null |
| π’ | test6 | βοΈ 201 | βοΈ CA10__shieldAdvancedState__c.delegatedTo(CA10__shieldAdvancedState__c).isEmpty() | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/shield/srt-access/policy.yaml | 075216BCE8BC0308F4796E367B8D68CA |
| Open | /ce/ca/aws/shield/srt-access/prod.logic.yaml | 6A06993F993A6EEBA4D45FE0A281F04F |
| Open | /ce/ca/aws/shield/srt-access/test-data.json | 189C92A453EAC170888934276FC77845 |
| Open | /types/CA10__CaAwsAccount__c/object.extracts.yaml | 3F27E86B09B7022ECCA1E625E50939D9 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/shield/srt-access/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/shield/srt-access/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/shield/srt-access/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/shield/srt-access/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/shield/srt-access/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsAccount__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsAccount__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "CloudAware Collector Status is not OK."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "OK"
- status: "INAPPLICABLE"
currentStateMessage: "Shield Advanced subscription is not enabled for this AWS Account."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__shieldAdvancedState__c"
right:
TEXT: "ACTIVE"
- status: "INCOMPLIANT"
currentStateMessage: "An IAM role for AWS Shield Response Team (SRT) access is not configured."
remediationMessage: "Create an IAM role with the 'AWSShieldDRTAccessPolicy' managed policy to allow the SRT access."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__shieldAdvancedSrtSupportConfigured__c"
right:
TEXT: "No"
- status: "COMPLIANT"
currentStateMessage: "An IAM role for AWS Shield Response Team (SRT) access is configured."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__shieldAdvancedSrtSupportConfigured__c"
right:
TEXT: "Yes"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."