π§ AWS EBS Attached Volume is not encrypted - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/aws/ec2/ebs-volume-encryption/prod.logic.yaml
- Located in: π AWS EBS Attached Volume is not encrypted π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π AWS EBS Volume | CA10__CaAwsVolume__c | 2 | 1 | 1 |
Usesβ
Test Results π’β
Generated at: 2025-07-25T15:25:56.876282863Z Open
Result | Id | Condition Index | Condition Text | Runtime 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β
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/ec2/ebs-volume-encryption/policy.yaml | C9FE36ECE16261FC07E7A96411FA1923 |
Open | /ce/ca/aws/ec2/ebs-volume-encryption/prod.logic.yaml | 0E3DD8C07F8D45D76A55B3340E47DB9A |
Open | /ce/ca/aws/ec2/ebs-volume-encryption/test-data.json | 5D8A8BDAA59D406ED79660015FBC5EED |
Open | /types/CA10__CaAwsVolume__c/object.extracts.yaml | 57B8E902583A8CF313EDFCBDDB88EC20 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/aws/ec2/ebs-volume-encryption/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/ec2/ebs-volume-encryption/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/ec2/ebs-volume-encryption/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/ec2/ebs-volume-encryption/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/aws/ec2/ebs-volume-encryption/prod.logic.yaml
Contentβ
inputType: "CA10__CaAwsVolume__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsVolume__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This policy only applies 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."
remediationMessage: "Enable encryption for the volume. "
check:
IS_EQUAL:
left:
EXTRACT: "CA10__encrypted__c"
right:
BOOLEAN: true
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."