π§ AWS VPC Network ACL is unused - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/aws/vpc/network-acl-unused/prod.logic.yaml
- Located in: π AWS VPC Network ACL is unused π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π AWS VPC Network ACL | CA10__CaAwsNetworkAcl__c | 1 | 1 | 2 |
Usesβ
Test Results π’β
Generated at: 2025-08-29T17:47:02.473732894Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | test2 | βοΈ 199 | βοΈ extract('CA10__isDefault__c') == true | βοΈ null |
π’ | test3 | βοΈ 299 | βοΈ CA10__networkAclAssociations__r.hasNo(COMPLIANT) | βοΈ null |
π’ | test4 | βοΈ 300 | βοΈ otherwise | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/vpc/network-acl-unused/policy.yaml | 0977F0CA3F13D3063FAD1DC576F9BDD9 |
Open | /ce/ca/aws/vpc/network-acl-unused/prod.logic.yaml | 1C1836DEE3652858165214316D07A318 |
Open | /types/CA10__CaAwsNetworkAcl__c/object.extracts.yaml | 5AF832994B8F0BBFF37719296CCB0AA0 |
Open | /ce/ca/aws/vpc/network-acl-unused/test-data.json | 4C568E2DE64A39BFECB5EB24C5CB0B00 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/aws/vpc/network-acl-unused/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/vpc/network-acl-unused/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/vpc/network-acl-unused/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/vpc/network-acl-unused/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/aws/vpc/network-acl-unused/prod.logic.yaml
Contentβ
inputType: "CA10__CaAwsNetworkAcl__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsNetworkAcl__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This is a default Network ACL and cannot be deleted."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__isDefault__c"
right:
BOOLEAN: true
- status: "INCOMPLIANT"
currentStateMessage: "This Network ACL is not associated with any subnets and is considered unused."
remediationMessage: "Consider deleting the unused Network ACL."
check:
RELATED_LIST_HAS_NO:
relationshipName: "CA10__networkAclAssociations__r"
status: "COMPLIANT"
otherwise:
status: "COMPLIANT"
currentStateMessage: "This Network ACL is associated with at least one subnet."
relatedLists:
- relationshipName: "CA10__networkAclAssociations__r"
conditions: []
otherwise:
status: "COMPLIANT"
currentStateMessage: "This is a subnet association."