π§ 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: 2025-12-27T12:02:00.119740489Z 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 | EB68D51FCC51CE71E691FF9366345FFD |
| Open | /ce/ca/aws/elb/load-balancer-idle/prod.logic.yaml | 9714D5F3EAC2FF5CF07EB837FD562516 |
| Open | /ce/ca/aws/elb/load-balancer-idle/test-data.json | A8054F8C017C9237707B5D9371EB59FB |
| Open | /types/CA10__CaAwsLoadBalancer__c/object.extracts.yaml | 08ABDD2ADB04C6F391A6E9FE1F0ACBBE |
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 has been 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 save 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 Application Load Balancer is actively processing requests."