β Repository β π Compliance Engine β π CloudAware β π AWS β π RDS β π‘οΈ Snapshot is 90 days old or moreπ’
π§ 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:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2025-10-01T12:45:55.804172933Z 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 | 0F8C5B970A84054CD3B9A2AEA7D48C53 |
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: "RDS Snapshot is 90 days old or more."
remediationMessage: "Consider deleting or archiving the snapshot."
check:
IS_BEYOND_LAST_DAYS:
offsetDays: 90
arg:
EXTRACT: "CA10__snapshotCreateTime__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "RDS snapshot is less than 90 days old."