Skip to main content

โญ Repository โ†’ ๐Ÿ“ Compliance Engine โ†’ ๐Ÿ“ CloudAware โ†’ ๐Ÿ“ AWS โ†’ ๐Ÿ“ RDS โ†’ ๐Ÿ›ก๏ธ Instance is overutilized๐ŸŸข

๐Ÿง  AWS RDS Instance is overutilized - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

Generated at: 2025-10-01T12:45:52.166447332Z Open

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸข001โœ”๏ธ 99โœ”๏ธ isDisappeared(CA10__disappearanceTime__c)โœ”๏ธ null
๐ŸŸข002โœ”๏ธ 199โœ”๏ธ extract('CA10__status__c') != 'available'โœ”๏ธ null
๐ŸŸข003โœ”๏ธ 299โœ”๏ธ not(extract('CA10__createTime__c').beyondLastDays(30))โœ”๏ธ null
๐ŸŸข004โœ”๏ธ 399โœ”๏ธ extract('CA10__averageCpuOneMonth__c').isEmpty()โœ”๏ธ null
๐ŸŸข005โœ”๏ธ 499โœ”๏ธ not(extract('CA10__averageCpuOneMonth__c') < number(90.0))โœ”๏ธ null
๐ŸŸข006โœ”๏ธ 500โœ”๏ธ otherwiseโœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/aws/rds/instance-overutilized/policy.yaml0416EC8388A241E1A8C9A30E3888F122
Open/ce/ca/aws/rds/instance-overutilized/prod.logic.yamlCCBB87B999B5B67AD7AF71CD11122253
Open/ce/ca/aws/rds/instance-overutilized/test-data.jsonB5CEDA0BB2CB7C25559EF9BE93FADA72
Open/types/CA10__CaAwsDbInstance__c/object.extracts.yaml0E769BD71AE72B63B1A02CBF1C462F5B

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/aws/rds/instance-overutilized/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/rds/instance-overutilized/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/rds/instance-overutilized/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/rds/instance-overutilized/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/rds/instance-overutilized/prod.logic.yaml

Contentโ€‹

Open File

---
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 overutilized."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__averageCpuOneMonth__c"
- status: "INCOMPLIANT"
currentStateMessage: "The instance is overutilized with Average CPU Utilization > 90%"
remediationMessage: "Consider rightsizing the instance."
check:
NOT:
arg:
LESS_THAN:
left:
EXTRACT: "CA10__averageCpuOneMonth__c"
right:
NUMBER: 90.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "The instance is not overutilized."