Skip to main content

🧠 AWS RDS Instance Deletion Protection is not enabled - prod.logic.yaml🟢

Uses

Test Results 🟢

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

ResultIdCondition IndexCondition TextRuntime Error
🟢001✔️ 99✔️ isDisappeared(CA10__disappearanceTime__c)✔️ null
🟢002✔️ 199✔️ extract('CA10__status__c') != 'available'✔️ null
🟢003✔️ 299✔️ extract('CA10__clusterArn__c').isNotEmpty()✔️ null
🟢004✔️ 599✔️ extract('CA10__deletionProtection__c') == true✔️ null
🟢005✔️ 600✔️ otherwise✔️ null

Generation Bundle

FileMD5
Open/ce/ca/aws/rds/instance-deletion-protection/policy.yamlB3928D36EC9293493492D0D832A15EE3
Open/ce/ca/aws/rds/instance-deletion-protection/prod.logic.yamlB8E8671860FEB77A5C17CE0BFF958FF3
Open/ce/ca/aws/rds/instance-deletion-protection/test-data.json3FDC27FE13FC9E4FFB4754BEB393420D
Open/types/CA10__CaAwsDbInstance__c/object.extracts.yamlE3FA5A211AA9AD2418645BB09047D3D3

Available Commands

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

Content

Open File

---
inputType: "CA10__CaAwsDbInstance__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsDbInstance__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The instance is not available."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "available"
- status: "INAPPLICABLE"
currentStateMessage: "This policy does not apply to cluster instances."
check:
NOT_EMPTY:
arg:
EXTRACT: "CA10__clusterArn__c"
- status: "INAPPLICABLE"
currentStateMessage: "This policy does not apply to Neptune."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__engine__c"
right:
TEXT: "neptune"
- status: "INAPPLICABLE"
currentStateMessage: "This policy does not apply to DocumentDB."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__engine__c"
right:
TEXT: "docdb"
- status: "COMPLIANT"
currentStateMessage: "RDS instance deletion protection is enabled."
check:
IS_EQUAL:
left:
EXTRACT: CA10__deletionProtection__c
right:
BOOLEAN: true
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "RDS instance deletion protection is disabled."
remediationMessage: "Enable deletion protection for this RDS instance."