⭐ Repository → 📁 Compliance Engine → 📁 CloudAware → 📁 AWS → 📁 EC2 → 🛡️ EBS Snapshot is 90 days old or more🟠🟢
🧠 AWS EBS Snapshot is 90 days old or more - prod.logic.yaml🟢
- Contextual name: 🧠 prod.logic.yaml🟢
- ID:
/ce/ca/aws/ec2/ebs-snapshot-old/prod.logic.yaml
- Tags:
Uses
Test Results 🟢
Generated at: 2025-10-01T12:44:52.001457468Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
🟢 | 001 | ✔️ 99 | ✔️ isDisappeared(CA10__disappearanceTime__c) | ✔️ null |
🟢 | 002 | ✔️ 299 | ✔️ extract('CA10__startTime__c').beyondLastDays(90) | ✔️ null |
🟢 | 003 | ✔️ 300 | ✔️ otherwise | ✔️ null |
🟢 | 004 | ✔️ 300 | ✔️ otherwise | ✔️ null |
🟢 | 005 | ✔️ 199 | ✔️ extract('CA10__state__c') != 'completed' | ✔️ null |
Generation Bundle
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/ec2/ebs-snapshot-old/policy.yaml | E255E0FDA3D7587872BB9E8C260E9567 |
Open | /ce/ca/aws/ec2/ebs-snapshot-old/prod.logic.yaml | CDC55CDE688BDD560C32D8764124AAC2 |
Open | /ce/ca/aws/ec2/ebs-snapshot-old/test-data.json | 974FDBB190B6256D3C185D3B14E63232 |
Open | /types/CA10__CaAwsSnapshot__c/object.extracts.yaml | 03CE90E6827F041BFA62AB505854D545 |
Available Commands
repo-manager policies generate FULL /ce/ca/aws/ec2/ebs-snapshot-old/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/ec2/ebs-snapshot-old/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/ec2/ebs-snapshot-old/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/ec2/ebs-snapshot-old/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/ec2/ebs-snapshot-old/prod.logic.yaml
Content
---
inputType: CA10__CaAwsSnapshot__c
importExtracts:
- file: "/types/CA10__CaAwsSnapshot__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The snapshot is not completed."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__state__c"
right:
TEXT: "completed"
- status: "INCOMPLIANT"
currentStateMessage: "EBS Snapshot is 90 days old or more."
remediationMessage: "Consider deleting or archiving the old snapshot."
check:
IS_BEYOND_LAST_DAYS:
offsetDays: 90
arg:
EXTRACT: "CA10__startTime__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "EBS snapshot is less than 90 days old."