🧠 AWS RDS Instance Deletion Protection is not enabled - prod.logic.yaml🟢
- Contextual name: 🧠 prod.logic.yaml🟢
- ID:
/ce/ca/aws/rds/instance-deletion-protection/prod.logic.yaml - Tags:
Uses
Test Results 🟢
Generated at: 2026-01-31T12:02:13.013254177Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/rds/instance-deletion-protection/policy.yaml | B3928D36EC9293493492D0D832A15EE3 |
| Open | /ce/ca/aws/rds/instance-deletion-protection/prod.logic.yaml | 56A66C9B8A964554ED8E11A2DB20C0DF |
| Open | /ce/ca/aws/rds/instance-deletion-protection/test-data.json | 3FDC27FE13FC9E4FFB4754BEB393420D |
| Open | /types/CA10__CaAwsDbInstance__c/object.extracts.yaml | E3FA5A211AA9AD2418645BB09047D3D3 |
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
---
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 doesn't apply to Cluster Instances."
check:
NOT_EMPTY:
arg:
EXTRACT: "CA10__clusterArn__c"
- status: "INAPPLICABLE"
currentStateMessage: "This policy doesn't apply to Neptune."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__engine__c"
right:
TEXT: "neptune"
- status: "INAPPLICABLE"
currentStateMessage: "This policy doesn't apply to DocumentDB."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__engine__c"
right:
TEXT: "docdb"
- status: "COMPLIANT"
currentStateMessage: "The RDS Instance Deletion Protection is enabled."
check:
IS_EQUAL:
left:
EXTRACT: CA10__deletionProtection__c
right:
BOOLEAN: true
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "The RDS Instance Deletion Protection is disabled."
remediationMessage: "Enable Deletion Protection for this RDS Instance."