Skip to main content

🧠 AWS EBS Attached Volume is not encrypted - prod.logic.yaml🟢

Uses

Test Results 🟢

Generated at: 2026-02-10T22:32:41.038684005Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟢test1✔️ 99✔️ isDisappeared(CA10__disappearanceTime__c)✔️ null
🟢test2✔️ 199✔️ extract('CA10__status__c') != 'in-use'✔️ null
🟢test3✔️ 299✔️ not(extract('CA10__encrypted__c'))✔️ null
🟢test4✔️ 399✔️ extract('CA10__encrypted__c') == true✔️ null

Generation Bundle

FileMD5
Open/ce/ca/aws/ec2/ebs-volume-encryption/policy.yaml3FAA45275092805E4C07D2CA19A95141
Open/ce/ca/aws/ec2/ebs-volume-encryption/prod.logic.yamlDA5953B18711E0A79CEE9DB07509DA3C
Open/ce/ca/aws/ec2/ebs-volume-encryption/test-data.json5D8A8BDAA59D406ED79660015FBC5EED
Open/types/CA10__CaAwsVolume__c/object.extracts.yamlD98F19A3E57995D503E82126277DD66A

Available Commands

repo-manager policies generate FULL /ce/ca/aws/ec2/ebs-volume-encryption/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/ec2/ebs-volume-encryption/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/ec2/ebs-volume-encryption/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/ec2/ebs-volume-encryption/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/ec2/ebs-volume-encryption/prod.logic.yaml

Content

Open File

inputType: "CA10__CaAwsVolume__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsVolume__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This policy applies only to attached EBS volumes. This volume is not attached."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "in-use"
- status: "INCOMPLIANT"
currentStateMessage: "The attached EBS volume is not encrypted."
remediationMessage: "Enable encryption for the volume."
check:
NOT:
arg:
EXTRACT: "CA10__encrypted__c"
- status: "COMPLIANT"
currentStateMessage: "The attached EBS volume is encrypted."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__encrypted__c"
right:
BOOLEAN: true
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."