Skip to main content

🧠 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​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“— AWS VPC Network ACLCA10__CaAwsNetworkAcl__c112

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-08-29T17:47:02.473732894Z Open

ResultIdCondition IndexCondition TextRuntime 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​

FileMD5
Open/ce/ca/aws/vpc/network-acl-unused/policy.yaml0977F0CA3F13D3063FAD1DC576F9BDD9
Open/ce/ca/aws/vpc/network-acl-unused/prod.logic.yaml1C1836DEE3652858165214316D07A318
Open/types/CA10__CaAwsNetworkAcl__c/object.extracts.yaml5AF832994B8F0BBFF37719296CCB0AA0
Open/ce/ca/aws/vpc/network-acl-unused/test-data.json4C568E2DE64A39BFECB5EB24C5CB0B00

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​

Open File

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."