🧠 AWS EBS Snapshot is not encrypted - prod.logic.yaml🟢
- Contextual name: 🧠 prod.logic.yaml🟢
- ID:
/ce/ca/aws/ec2/ebs-snapshot-encryption/prod.logic.yaml - Tags:
Uses
Test Results 🟢
Generated at: 2025-12-27T12:01:46.740287193Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| 🟢 | 001 | ✔️ 99 | ✔️ isDisappeared(CA10__disappearanceTime__c) | ✔️ null |
| 🟢 | 002 | ✔️ 199 | ✔️ extract('CA10__state__c') != 'completed' | ✔️ null |
| 🟢 | 003 | ✔️ 299 | ✔️ extract('CA10__encrypted__c') == false | ✔️ null |
| 🟢 | 004 | ✔️ 399 | ✔️ extract('CA10__encrypted__c') == true | ✔️ null |
Generation Bundle
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/ec2/ebs-snapshot-encryption/policy.yaml | 20DEDF09EAA2ABF9545345D6BCFBB7BA |
| Open | /ce/ca/aws/ec2/ebs-snapshot-encryption/prod.logic.yaml | 4E29765F6E633D9F2458B0ABD562E748 |
| Open | /ce/ca/aws/ec2/ebs-snapshot-encryption/test-data.json | C6512EC4464C4F3A11776ABEB3197793 |
| Open | /types/CA10__CaAwsSnapshot__c/object.extracts.yaml | 44D70F8730901DA3EFD8E736EDA9E616 |
Available Commands
repo-manager policies generate FULL /ce/ca/aws/ec2/ebs-snapshot-encryption/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/ec2/ebs-snapshot-encryption/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/ec2/ebs-snapshot-encryption/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/ec2/ebs-snapshot-encryption/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/ec2/ebs-snapshot-encryption/prod.logic.yaml
Content
inputType: "CA10__CaAwsSnapshot__c"
testData:
- file: "test-data.json"
importExtracts:
- file: /types/CA10__CaAwsSnapshot__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The snapshot is not in a completed state."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__state__c"
right:
TEXT: "completed"
- status: "INCOMPLIANT"
currentStateMessage: "The EBS snapshot is not encrypted."
remediationMessage: "Copy the snapshot and enable encryption on the copy to secure the data."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__encrypted__c"
right:
BOOLEAN: false
- status: "COMPLIANT"
currentStateMessage: "The EBS snapshot is encrypted."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__encrypted__c"
right:
BOOLEAN: true
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."