Skip to main content

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🟢

Uses

Test Results 🟢

Generated at: 2025-10-01T12:44:52.001457468Z Open

ResultIdCondition IndexCondition TextRuntime 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

FileMD5
Open/ce/ca/aws/ec2/ebs-snapshot-old/policy.yamlE255E0FDA3D7587872BB9E8C260E9567
Open/ce/ca/aws/ec2/ebs-snapshot-old/prod.logic.yamlCDC55CDE688BDD560C32D8764124AAC2
Open/ce/ca/aws/ec2/ebs-snapshot-old/test-data.json974FDBB190B6256D3C185D3B14E63232
Open/types/CA10__CaAwsSnapshot__c/object.extracts.yaml03CE90E6827F041BFA62AB505854D545

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

Open File

---
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."