π§ AWS ELB Application Load Balancer is idle - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/elb/load-balancer-idle/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2026-06-06T12:02:55.622206814Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/elb/load-balancer-idle/policy.yaml | E7BD34EC05D832C2316FB64382AB2675 |
| Open | /ce/ca/aws/elb/load-balancer-idle/prod.logic.yaml | E5C018A42611A9068226F5E97F672FC3 |
| Open | /ce/ca/aws/elb/load-balancer-idle/test-data.json | A8054F8C017C9237707B5D9371EB59FB |
| Open | /types/CA10__CaAwsLoadBalancer__c/object.extracts.yaml | 9895F1EB30DFD8DDB6D571F452C5A7DE |
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β
---
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."