Skip to main content

🧠 AWS Inspector ECR Scanning is not enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-12-27T12:02:03.975468454Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 299βœ”οΈ extract('CA10__inspectorStatus__c') == 'Disabled'βœ”οΈ null
🟒test2βœ”οΈ 499βœ”οΈ extract('CA10__inspectorEcrStatus__c') == 'Disabled'βœ”οΈ null
🟒test3βœ”οΈ 599βœ”οΈ extract('CA10__inspectorEcrStatus__c') == 'Enabled'βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/inspector/ecr-scanning/policy.yamlFD33DE91090340CC3E77789A83B0FD72
Open/ce/ca/aws/inspector/ecr-scanning/prod.logic.yamlF1BA70E26A23B12A5159B6B4BA31AB0D
Open/ce/ca/aws/inspector/ecr-scanning/test-data.jsonE91FEE9D6F31FAAB6842F77B40E1734F
Open/types/CA10__CaAwsAccount__c/object.extracts.yaml926999C100E8C1066EC8BD4B82B0F362

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/inspector/ecr-scanning/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/inspector/ecr-scanning/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/inspector/ecr-scanning/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/inspector/ecr-scanning/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/inspector/ecr-scanning/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsAccount__c"
importExtracts:
- file: "/types/CA10__CaAwsAccount__c/object.extracts.yaml"
testData:
- file: test-data.json
conditions:
- status: "UNDETERMINED"
currentStateMessage: "Amazon Inspector status is not available."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__inspectorStatus__c"
- status: "INCOMPLIANT"
currentStateMessage: "Amazon Inspector is not enabled for this account."
remediationMessage: "Enable Amazon Inspector in the AWS console."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__inspectorStatus__c"
right:
TEXT: "Disabled"
- status: "UNDETERMINED"
currentStateMessage: "Amazon Inspector ECR scanning status is not available."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__inspectorEcrStatus__c"
- status: "INCOMPLIANT"
currentStateMessage: "Amazon Inspector ECR scanning is disabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__inspectorEcrStatus__c"
right:
TEXT: "Disabled"
- status: "COMPLIANT"
currentStateMessage: "Amazon Inspector ECR scanning is enabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__inspectorEcrStatus__c"
right:
TEXT: "Enabled"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the fields."