Skip to main content

🧠 AWS Redshift Cluster is underutilized - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:33:15.703589471Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒001βœ”οΈ 199βœ”οΈ extract('CA10__status__c') != 'available'βœ”οΈ null
🟒002βœ”οΈ 299βœ”οΈ not(extract('CA10__createTime__c').beyondLastDays(30))βœ”οΈ null
🟒003βœ”οΈ 399βœ”οΈ extract('CA10__cpuUtilizationAvg30d__c').isEmpty() || extract('CA10__diskReadIopsAvg30d__c').isEmpty() || extract('CA10__diskWriteIopsAvg30d__c').isEmpty()βœ”οΈ null
🟒004βœ”οΈ 499βœ”οΈ extract('CA10__cpuUtilizationAvg30d__c') < number(20.0) && extract('CA10__diskReadIopsAvg30d__c') < number(50.0) && extract('CA10__diskWriteIopsAvg30d__c') < number(50.0)βœ”οΈ null
🟒005βœ”οΈ 500βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/redshift/cluster-underutilized/policy.yaml89DB0905DC1FCCAB9792567A50D22425
Open/ce/ca/aws/redshift/cluster-underutilized/prod.logic.yamlC0D9F5F00D5F6DA095D567B9D5228D1D
Open/ce/ca/aws/redshift/cluster-underutilized/test-data.json595C8EFCDD78D5E2A9AC74CFFECCA83F
Open/types/CA10__CaAwsRedshiftCluster__c/object.extracts.yaml978033E93A3BC4EEE31B6916039330FF

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/redshift/cluster-underutilized/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/redshift/cluster-underutilized/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/redshift/cluster-underutilized/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/redshift/cluster-underutilized/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/redshift/cluster-underutilized/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: "INAPPLICABLE"
currentStateMessage: "The cluster has been created less than 30 days ago."
check:
NOT:
arg:
IS_BEYOND_LAST_DAYS:
offsetDays: 30
arg:
EXTRACT: "CA10__createTime__c"
- status: UNDETERMINED
currentStateMessage: "There is not enough data in the CMDB to determine whether the cluster is underutilized."
check:
OR:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10__cpuUtilizationAvg30d__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10__diskReadIopsAvg30d__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10__diskWriteIopsAvg30d__c"
- status: "INCOMPLIANT"
currentStateMessage: "The cluster is underutilized with average CPU utilization below 20% and average disk I/O below 50 IOPS."
remediationMessage: "Rightsize the cluster."
check:
AND:
args:
- LESS_THAN:
left:
EXTRACT: "CA10__cpuUtilizationAvg30d__c"
right:
NUMBER: 20.0
- LESS_THAN:
left:
EXTRACT: "CA10__diskReadIopsAvg30d__c"
right:
NUMBER: 50.0
- LESS_THAN:
left:
EXTRACT: "CA10__diskWriteIopsAvg30d__c"
right:
NUMBER: 50.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "The cluster is not underutilized."