Skip to main content

🧠 AWS Shield Advanced SRT access is not configured - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-11-20T13:29:00.452787149Z Open

ResultIdCondition IndexCondition TextRuntime 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​

FileMD5
Open/ce/ca/aws/shield/srt-access/policy.yaml075216BCE8BC0308F4796E367B8D68CA
Open/ce/ca/aws/shield/srt-access/prod.logic.yaml6A06993F993A6EEBA4D45FE0A281F04F
Open/ce/ca/aws/shield/srt-access/test-data.json189C92A453EAC170888934276FC77845
Open/types/CA10__CaAwsAccount__c/object.extracts.yaml3F27E86B09B7022ECCA1E625E50939D9

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​

Open File

---
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."