Skip to main content

🧠 AWS ELB Classic Load Balancer Connection Draining is disabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

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

ResultIdCondition IndexCondition TextRuntime Error
🟒001βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒002βœ”οΈ 199βœ”οΈ extract('CA10__type__c') != 'classic'βœ”οΈ null
🟒003βœ”οΈ 299βœ”οΈ extract('CA10__connectionDrainingEnabled__c') == falseβœ”οΈ null
🟒004βœ”οΈ 399βœ”οΈ extract('CA10__connectionDrainingEnabled__c') == trueβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/elb/load-balancer-connection-draining/policy.yaml181BB223E08D89B964F9B4D8B17CFBBE
Open/ce/ca/aws/elb/load-balancer-connection-draining/prod.logic.yamlCA385ADC5C1A470299045482755B0A40
Open/ce/ca/aws/elb/load-balancer-connection-draining/test-data.jsonC105CB2129AA70EB240B27CA83D8428B
Open/types/CA10__CaAwsLoadBalancer__c/object.extracts.yaml9895F1EB30DFD8DDB6D571F452C5A7DE

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/elb/load-balancer-connection-draining/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/elb/load-balancer-connection-draining/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/elb/load-balancer-connection-draining/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/elb/load-balancer-connection-draining/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/elb/load-balancer-connection-draining/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: "Connection Draining is supported only for Classic Load Balancers."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__type__c"
right:
TEXT: "classic"
- status: "INCOMPLIANT"
currentStateMessage: "The Load Balancer Connection Draining is not enabled."
remediationMessage: "Enable Load Balancer Connection Draining."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__connectionDrainingEnabled__c"
right:
BOOLEAN: false
- status: "COMPLIANT"
currentStateMessage: "The Load Balancer Connection Draining is enabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__connectionDrainingEnabled__c"
right:
BOOLEAN: true
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."