Skip to main content

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

Uses​

Test Results πŸŸ’β€‹

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

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

Generation Bundle​

FileMD5
Open/ce/ca/aws/inspector/ec2-scanning/policy.yamlAC3A1ED138A18F0B7BC7224DF5051CF1
Open/ce/ca/aws/inspector/ec2-scanning/prod.logic.yamlC40F4869068E5C695716B2E4C11C7CB9
Open/ce/ca/aws/inspector/ec2-scanning/test-data.jsonB97B01415DF8B4CD450F6A7DCF3EDC30
Open/types/CA10__CaAwsAccount__c/object.extracts.yaml926999C100E8C1066EC8BD4B82B0F362

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/inspector/ec2-scanning/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/inspector/ec2-scanning/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/inspector/ec2-scanning/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/inspector/ec2-scanning/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/inspector/ec2-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 EC2 scanning status is not available."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__inspectorEc2Status__c"
- status: "INCOMPLIANT"
currentStateMessage: "Amazon Inspector EC2 scanning is disabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__inspectorEc2Status__c"
right:
TEXT: "Disabled"
- status: "COMPLIANT"
currentStateMessage: "Amazon Inspector EC2 scanning is enabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__inspectorEc2Status__c"
right:
TEXT: "Enabled"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the fields."