Skip to main content

🧠 AWS Redshift Cluster Automated Snapshot Retention Period is not set - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-01-31T12:02:17.282551434Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒001βœ”οΈ 299βœ”οΈ extract('CA10__automatedSnapshotRetentionPeriod__c') > number(0.0)βœ”οΈ null
🟒002βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null
🟒002βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/redshift/cluster-snapshot-retention/policy.yamlD04CA27E92E2DF911291ADB3C8692983
Open/ce/ca/aws/redshift/cluster-snapshot-retention/prod.logic.yaml5375234B42F31A55320C0CCB84B2BEE6
Open/ce/ca/aws/redshift/cluster-snapshot-retention/test-data.json54C728656EE5DD2FA390C6186188BEA5
Open/types/CA10__CaAwsRedshiftCluster__c/object.extracts.yamlDBF4D0413CB4EF01D13D17E4ED636EC5

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/redshift/cluster-snapshot-retention/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/redshift/cluster-snapshot-retention/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/redshift/cluster-snapshot-retention/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/redshift/cluster-snapshot-retention/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/redshift/cluster-snapshot-retention/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsRedshiftCluster__c"
importExtracts:
- file: "/types/CA10__CaAwsRedshiftCluster__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The Cluster is not available."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "available"
- status: "COMPLIANT"
currentStateMessage: "Automated backups are enabled for the Cluster."
check:
GREATER_THAN:
left:
EXTRACT: "CA10__automatedSnapshotRetentionPeriod__c"
right:
NUMBER: 0.0
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Automated backups are not enabled for the Cluster."
remediationMessage: "Enable automated backups for the Cluster."