Skip to main content

⭐ 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🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-10-01T12:45:55.804172933Z Open

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

FileMD5
Open/ce/ca/aws/rds/snapshot-old/policy.yamlDA148820AC85B916ABB091A5C5AE6308
Open/ce/ca/aws/rds/snapshot-old/prod.logic.yaml0F8C5B970A84054CD3B9A2AEA7D48C53
Open/ce/ca/aws/rds/snapshot-old/test-data.json85306B34C995EE763E35DBE7860D9FBD
Open/types/CA10__CaAwsDbSnapshot__c/object.extracts.yaml76C7D71A88222DC213DE94D7293929A3

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​

Open File

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