Skip to main content

🧠 AWS ELB Load Balancer Deletion Protection is disabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-01-31T12:01:57.452307881Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒001βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒002βœ”οΈ 199βœ”οΈ extract('CA10__type__c') != 'application' && extract('CA10__type__c') != 'gateway' && extract('CA10__type__c') != 'network'βœ”οΈ null
🟒003βœ”οΈ 299βœ”οΈ extract('caSetFrom_additionalAttributes__c').contains('deletion_protection.enabled: false')βœ”οΈ null
🟒004βœ”οΈ 399βœ”οΈ extract('caSetFrom_additionalAttributes__c').contains('deletion_protection.enabled: true')βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/elb/load-balancer-deletion-protection/policy.yamlDEE7F91CAF7D8D4DBD6D39AECBD8A6CA
Open/ce/ca/aws/elb/load-balancer-deletion-protection/prod.logic.yaml199C06097D0615AA24539AAAAC2D7285
Open/ce/ca/aws/elb/load-balancer-deletion-protection/test-data.json534F415D8CB9CECA73E94909295681AA
Open/types/CA10__CaAwsLoadBalancer__c/object.extracts.yaml9895F1EB30DFD8DDB6D571F452C5A7DE

Available Commands​

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

Content​

Open File

---
inputType: "CA10__CaAwsLoadBalancer__c"
importExtracts:
- file: "/types/CA10__CaAwsLoadBalancer__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "Deletion Protection only supports Application, Network and Gateway Load Balancers."
check:
AND:
args:
- NOT_EQUAL:
left:
EXTRACT: "CA10__type__c"
right:
TEXT: "application"
- NOT_EQUAL:
left:
EXTRACT: "CA10__type__c"
right:
TEXT: "gateway"
- NOT_EQUAL:
left:
EXTRACT: "CA10__type__c"
right:
TEXT: "network"
- status: "INCOMPLIANT"
currentStateMessage: "Load Balancer Deletion Protection is not enabled."
remediationMessage: "Enable Load Balancer Deletion Protection."
check:
CONTAINS:
arg:
EXTRACT: "caSetFrom_additionalAttributes__c"
search:
TEXT: "deletion_protection.enabled: false"
- status: "COMPLIANT"
currentStateMessage: "Load Balancer Deletion Protection is enabled."
check:
CONTAINS:
arg:
EXTRACT: "caSetFrom_additionalAttributes__c"
search:
TEXT: "deletion_protection.enabled: true"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."