🧠 AWS RDS Instance is idle - prod.logic.yaml🟢
- Contextual name: 🧠 prod.logic.yaml🟢
- ID:
/ce/ca/aws/rds/instance-idle/prod.logic.yaml - Tags:
Uses
Test Results 🟢
Generated at: 2026-02-07T12:02:40.574604455Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| 🟢 | 001 | ✔️ 99 | ✔️ isDisappeared(CA10__disappearanceTime__c) | ✔️ null |
| 🟢 | 002 | ✔️ 499 | ✔️ extract('CA10__averageCpuOneMonth__c') < number(5.0) && extract('CA10__databaseConnectionsAvg30d__c') <= number(0.0) | ✔️ null |
| 🟢 | 003 | ✔️ 500 | ✔️ otherwise | ✔️ null |
Generation Bundle
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/rds/instance-idle/policy.yaml | 4DC8A68B24DB41A0D067373547A7A183 |
| Open | /ce/ca/aws/rds/instance-idle/prod.logic.yaml | C75733160CC753A2BDAC9AE0D75A8D95 |
| Open | /ce/ca/aws/rds/instance-idle/test-data.json | 56A8FF993AD905D291FF8789E772027C |
| Open | /types/CA10__CaAwsDbInstance__c/object.extracts.yaml | E3FA5A211AA9AD2418645BB09047D3D3 |
Available Commands
repo-manager policies generate FULL /ce/ca/aws/rds/instance-idle/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/rds/instance-idle/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/rds/instance-idle/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/rds/instance-idle/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/rds/instance-idle/prod.logic.yaml
Content
---
inputType: "CA10__CaAwsDbInstance__c"
importExtracts:
- file: "/types/CA10__CaAwsDbInstance__c/object.extracts.yaml"
testData:
- file: 'test-data.json'
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The instance is not available."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "available"
- status: "INAPPLICABLE"
currentStateMessage: "The instance 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 identify if the instance is idle."
check:
OR:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10__averageCpuOneMonth__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10__databaseConnectionsAvg30d__c"
- status: "INCOMPLIANT"
currentStateMessage: "The instance is idle with Average CPU Utilization < 5%, Average Database Connections = 0."
remediationMessage: "Consider terminating or down-sizing the instance."
check:
AND:
args:
- LESS_THAN:
left:
EXTRACT: "CA10__averageCpuOneMonth__c"
right:
NUMBER: 5.0
- LESS_THAN_EQUAL:
left:
EXTRACT: "CA10__databaseConnectionsAvg30d__c"
right:
NUMBER: 0.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "The instance is not idle."