Skip to main content

🧠 AWS ELB Application Load Balancer is idle - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-06-06T12:02:55.622206814Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒001βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒002βœ”οΈ 399βœ”οΈ extract('CA10__createdTime__c').withinLastDays(30)βœ”οΈ null
🟒003βœ”οΈ 499βœ”οΈ extract('CA10__requestCountOneMonth__c').isEmpty() || extract('CA10__requestCountOneMonth__c') <= number(0.0)βœ”οΈ null
🟒004βœ”οΈ 499βœ”οΈ extract('CA10__requestCountOneMonth__c').isEmpty() || extract('CA10__requestCountOneMonth__c') <= number(0.0)βœ”οΈ null
🟒005βœ”οΈ 500βœ”οΈ otherwiseβœ”οΈ null
🟒006βœ”οΈ 499βœ”οΈ extract('CA10__requestCountOneMonth__c').isEmpty() || extract('CA10__requestCountOneMonth__c') <= number(0.0)βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/elb/load-balancer-idle/policy.yamlE7BD34EC05D832C2316FB64382AB2675
Open/ce/ca/aws/elb/load-balancer-idle/prod.logic.yamlE5C018A42611A9068226F5E97F672FC3
Open/ce/ca/aws/elb/load-balancer-idle/test-data.jsonA8054F8C017C9237707B5D9371EB59FB
Open/types/CA10__CaAwsLoadBalancer__c/object.extracts.yaml9895F1EB30DFD8DDB6D571F452C5A7DE

Available Commands​

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

Content​

Open File

---
inputType: "CA10__CaAwsLoadBalancer__c"
recordTypes:
- "caAwsLoadBalancerApplication"
- "caAwsLoadBalancerClassic"
importExtracts:
- file: "/types/CA10__CaAwsLoadBalancer__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This policy only applies to application and Classic load balancers."
check:
AND:
args:
- NOT_EQUAL:
left:
EXTRACT: "CA10__type__c"
right:
TEXT: "application"
- NOT_EQUAL:
left:
EXTRACT: "CA10__type__c"
right:
TEXT: "classic"
- status: "INAPPLICABLE"
currentStateMessage: "The load balancer was created less than 30 days ago."
check:
IS_WITHIN_LAST_DAYS:
offsetDays: 30
arg:
EXTRACT: "CA10__createdTime__c"
- status: "INCOMPLIANT"
currentStateMessage: "The load balancer has received zero requests in the last 30 days."
remediationMessage: "Review the idle load balancer and consider deleting it to reduce costs."
check:
OR:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10__requestCountOneMonth__c"
- LESS_THAN_EQUAL:
left:
EXTRACT: "CA10__requestCountOneMonth__c"
right:
NUMBER: 0.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "The load balancer is actively processing requests."