Skip to main content

🧠 AWS EC2 Auto Scaling Group and Classic Load Balancer AZs are inconsistent - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:32:32.862857028Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ CA10__AWS_EC2_Auto_Scaling_Group_Tfc_Src_Links__r.has(INAPPLICABLE)βœ”οΈ null
🟒test3βœ”οΈ 199βœ”οΈ CA10__AWS_EC2_Auto_Scaling_Group_Tfc_Src_Links__r.has(INAPPLICABLE)βœ”οΈ null
🟒test4βœ”οΈ 299βœ”οΈ CA10__AWS_EC2_Auto_Scaling_Group_Tfc_Src_Links__r.has(INCOMPLIANT)βœ”οΈ null
🟒test5βœ”οΈ 299βœ”οΈ CA10__AWS_EC2_Auto_Scaling_Group_Tfc_Src_Links__r.has(INCOMPLIANT)βœ”οΈ null
🟒test7βœ”οΈ 399βœ”οΈ CA10__AWS_EC2_Auto_Scaling_Group_Tfc_Src_Links__r.has(COMPLIANT)βœ”οΈ null
🟒test8βœ”οΈ 500βœ”οΈ otherwiseβœ”οΈ null
🟒test9βœ”οΈ 499βœ”οΈ CA10__AWS_EC2_Auto_Scaling_Group_Tfc_Src_Links__r.has(UNDETERMINED)βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/autoscaling/group-and-classic-lb-inconsistent-azs/policy.yaml25E9AEDE7A1EBB869CBA366B98EB6EE3
Open/ce/ca/aws/autoscaling/group-and-classic-lb-inconsistent-azs/prod.logic.yamlABC59D7EC7787054721A9E9FF844D03B
Open/ce/ca/aws/autoscaling/group-and-classic-lb-inconsistent-azs/test-data.jsonC6A46D7E236057B52D0EDF37A3A2154B
Open/types/CA10__CaAwsLoadBalancer__c/object.extracts.yaml9895F1EB30DFD8DDB6D571F452C5A7DE
Open/types/CA10__CaAwsAutoScalingGroup__c/object.extracts.yamlDD26D73C0CF43F8CE9CBE35D8241D89C

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/autoscaling/group-and-classic-lb-inconsistent-azs/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/autoscaling/group-and-classic-lb-inconsistent-azs/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/autoscaling/group-and-classic-lb-inconsistent-azs/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/autoscaling/group-and-classic-lb-inconsistent-azs/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/autoscaling/group-and-classic-lb-inconsistent-azs/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsAutoScalingGroup__c"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The ASG is linked through a target group, or the classic load balancer is not present in the CMDB."
check:
RELATED_LIST_HAS:
relationshipName: "CA10__AWS_EC2_Auto_Scaling_Group_Tfc_Src_Links__r"
status: "INAPPLICABLE"
- status: "INCOMPLIANT"
currentStateMessage: "At least one related classic load balancer is non-compliant."
remediationMessage: "Align Availability Zones between the load balancer and the Auto Scaling group."
check:
RELATED_LIST_HAS:
relationshipName: "CA10__AWS_EC2_Auto_Scaling_Group_Tfc_Src_Links__r"
status: "INCOMPLIANT"
- status: "COMPLIANT"
currentStateMessage: "Availability Zones match between the Auto Scaling group and the load balancer."
check:
RELATED_LIST_HAS:
relationshipName: "CA10__AWS_EC2_Auto_Scaling_Group_Tfc_Src_Links__r"
status: "COMPLIANT"
- status: "UNDETERMINED"
currentStateMessage: "Unable to determine if AZs match."
check:
RELATED_LIST_HAS:
relationshipName: "CA10__AWS_EC2_Auto_Scaling_Group_Tfc_Src_Links__r"
status: "UNDETERMINED"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Auto Scaling group is not linked to an active load balancer."
relatedLists:
- relationshipName: "CA10__AWS_EC2_Auto_Scaling_Group_Tfc_Src_Links__r"
importExtracts:
- file: /types/CA10__CaAwsAutoScalingGroup__c/object.extracts.yaml
- file: /types/CA10__CaAwsLoadBalancer__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The ASG is linked through a target group, or the classic load balancer is not present in the CMDB."
check:
IS_EMPTY_LOOKUP: "CA10__loadBalancer__r"
- status: "INCOMPLIANT"
currentStateMessage: "The set of Availability Zones configured on the Auto\
\ Scaling Group does not match the set configured on Load Balancer."
remediationMessage: "Align the Availability Zones on the Auto Scaling group and the load balancer."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__autoScalingGroup__r.caSetFrom_availabilityZones__c"
right:
EXTRACT: "CA10__loadBalancer__r.caSetFrom_availabilityZones__c"
- status: "COMPLIANT"
currentStateMessage: "The set of Availability Zones configured on the Auto\
\ Scaling Group matches the set configured on Load Balancer."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__autoScalingGroup__r.caSetFrom_availabilityZones__c"
right:
EXTRACT: "CA10__loadBalancer__r.caSetFrom_availabilityZones__c"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unable to determine the AZs."