🧠 AWS RDS Snapshot is 90 days old or more - prod.logic.yaml🟢
- Contextual name: 🧠 prod.logic.yaml🟢
- ID:
/ce/ca/aws/rds/snapshot-old/prod.logic.yaml - Tags:
Uses
Test Results 🟢
Generated at: 2026-02-10T22:33:13.594994110Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| 🟢 | 001 | ✔️ 99 | ✔️ isDisappeared(CA10__disappearanceTime__c) | ✔️ null |
| 🟢 | 002 | ✔️ 299 | ✔️ extract('CA10__snapshotCreateTime__c').beyondLastDays(90) | ✔️ null |
| 🟢 | 003 | ✔️ 300 | ✔️ otherwise | ✔️ null |
| 🟢 | 004 | ✔️ 199 | ✔️ extract('CA10__status__c') != 'available' | ✔️ null |
Generation Bundle
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/rds/snapshot-old/policy.yaml | DA148820AC85B916ABB091A5C5AE6308 |
| Open | /ce/ca/aws/rds/snapshot-old/prod.logic.yaml | 7414AD7C6E2D4BC5651E7085938D947D |
| Open | /ce/ca/aws/rds/snapshot-old/test-data.json | 85306B34C995EE763E35DBE7860D9FBD |
| Open | /types/CA10__CaAwsDbSnapshot__c/object.extracts.yaml | 76C7D71A88222DC213DE94D7293929A3 |
Available Commands
repo-manager policies generate FULL /ce/ca/aws/rds/snapshot-old/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/rds/snapshot-old/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/rds/snapshot-old/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/rds/snapshot-old/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/rds/snapshot-old/prod.logic.yaml
Content
---
inputType: CA10__CaAwsDbSnapshot__c
importExtracts:
- file: "/types/CA10__CaAwsDbSnapshot__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The snapshot is not in the available state."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "available"
- status: "INCOMPLIANT"
currentStateMessage: "The RDS snapshot is 90 days old or more."
remediationMessage: "Delete or archive the snapshot if it is no longer needed."
check:
IS_BEYOND_LAST_DAYS:
offsetDays: 90
arg:
EXTRACT: "CA10__snapshotCreateTime__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The RDS snapshot is less than 90 days old."