🧠 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: 2026-02-10T22:32:40.395573707Z 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 | 9B0215EC9574BFC4D4414EAFFAC4CAA8 |
| Open | /ce/ca/aws/ec2/ebs-snapshot-old/test-data.json | 974FDBB190B6256D3C185D3B14E63232 |
| Open | /types/CA10__CaAwsSnapshot__c/object.extracts.yaml | 44D70F8730901DA3EFD8E736EDA9E616 |
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: "The EBS snapshot is 90 days old or more."
remediationMessage: "Delete or archive the old snapshot."
check:
IS_BEYOND_LAST_DAYS:
offsetDays: 90
arg:
EXTRACT: "CA10__startTime__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The EBS snapshot is less than 90 days old."