π§ AWS Redshift Cluster Automated Snapshot Retention Period is not set - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/redshift/cluster-snapshot-retention/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2026-01-31T12:02:17.282551434Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | 001 | βοΈ 299 | βοΈ extract('CA10__automatedSnapshotRetentionPeriod__c') > number(0.0) | βοΈ null |
| π’ | 002 | βοΈ 300 | βοΈ otherwise | βοΈ null |
| π’ | 002 | βοΈ 300 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/redshift/cluster-snapshot-retention/policy.yaml | D04CA27E92E2DF911291ADB3C8692983 |
| Open | /ce/ca/aws/redshift/cluster-snapshot-retention/prod.logic.yaml | 5375234B42F31A55320C0CCB84B2BEE6 |
| Open | /ce/ca/aws/redshift/cluster-snapshot-retention/test-data.json | 54C728656EE5DD2FA390C6186188BEA5 |
| Open | /types/CA10__CaAwsRedshiftCluster__c/object.extracts.yaml | DBF4D0413CB4EF01D13D17E4ED636EC5 |
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β
---
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."