🧠 AWS RDS Cluster Backup Retention Period is less than 7 days - prod.logic.yaml🟢
- Contextual name: 🧠 prod.logic.yaml🟢
- ID:
/ce/ca/aws/rds/cluster-backup-retention/prod.logic.yaml - Tags:
Uses
Test Results 🟢
Generated at: 2026-04-25T12:03:34.243682495Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| 🟢 | test1 | ✔️ 99 | ✔️ isDisappeared(CA10__disappearanceTime__c) | ✔️ null |
| 🟢 | test2 | ✔️ 199 | ✔️ extract('CA10__status__c') != 'available' | ✔️ null |
| 🟢 | test3 | ✔️ 299 | ✔️ not(setOfText(['aurora-postgresql', 'aurora-mysql', 'mysql', 'postgres', 'docdb', 'neptune']).contains(extract('CA10__engine__c'))) | ✔️ null |
| 🟢 | test4 | ✔️ 399 | ✔️ extract('CA10__backupRetentionPeriod__c') < number(7.0) | ✔️ null |
| 🟢 | test5 | ✔️ 499 | ✔️ extract('CA10__backupRetentionPeriod__c') >= number(7.0) | ✔️ null |
| 🟢 | test6 | ✔️ 399 | ✔️ extract('CA10__backupRetentionPeriod__c') < number(7.0) | ✔️ null |
| 🟢 | test7 | ✔️ 499 | ✔️ extract('CA10__backupRetentionPeriod__c') >= number(7.0) | ✔️ null |
| 🟢 | test8 | ✔️ 399 | ✔️ extract('CA10__backupRetentionPeriod__c') < number(7.0) | ✔️ null |
| 🟢 | test9 | ✔️ 499 | ✔️ extract('CA10__backupRetentionPeriod__c') >= number(7.0) | ✔️ null |
Generation Bundle
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/rds/cluster-backup-retention/policy.yaml | 3BEF0C58A4F5CEA8FB7DB468CB94D6DA |
| Open | /ce/ca/aws/rds/cluster-backup-retention/prod.logic.yaml | F350BE8BD4F46BE118AAEBDCCAC22DF1 |
| Open | /ce/ca/aws/rds/cluster-backup-retention/test-data.json | A53966258148EB3F17C7A02A31C430AC |
| Open | /types/CA10__CaAwsDbCluster__c/object.extracts.yaml | 8AACD486F39325BBBA7FE4FA3BE340E9 |
Available Commands
repo-manager policies generate FULL /ce/ca/aws/rds/cluster-backup-retention/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/rds/cluster-backup-retention/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/rds/cluster-backup-retention/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/rds/cluster-backup-retention/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/rds/cluster-backup-retention/prod.logic.yaml
Content
---
inputType: "CA10__CaAwsDbCluster__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsDbCluster__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The cluster is not available."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "available"
- status: "INAPPLICABLE"
currentStateMessage: "This policy applies only to Aurora, RDS Multi-AZ MySQL and PostgreSQL, DocumentDB, and Neptune clusters."
check:
NOT:
arg:
CONTAINS:
arg:
SET:
itemType: "TEXT"
items:
- "aurora-postgresql"
- "aurora-mysql"
- "mysql"
- "postgres"
- "docdb"
- "neptune"
search:
EXTRACT: "CA10__engine__c"
- status: "INCOMPLIANT"
currentStateMessage: "The cluster backup retention period is less than 7 days."
remediationMessage: "Set the cluster backup retention period to at least 7 days."
check:
LESS_THAN:
left:
EXTRACT: "CA10__backupRetentionPeriod__c"
right:
NUMBER: 7.0
- status: "COMPLIANT"
currentStateMessage: "The cluster backup retention period is at least 7 days."
check:
GREATER_THAN_EQUAL:
left:
EXTRACT: "CA10__backupRetentionPeriod__c"
right:
NUMBER: 7.0
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values were found in the cluster status, engine, or backup retention period."