Skip to main content

🧠 AWS Network Firewall Subnet Change Protection is not enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-01-17T12:02:55.003969945Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10A2__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10A2__status__c') != 'READY'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10A2__subnetChangeProtection__c') == 'false'βœ”οΈ null
🟒test4βœ”οΈ 399βœ”οΈ extract('CA10A2__subnetChangeProtection__c') == 'true'βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/network-firewall/firewall-subnet-change-protection/policy.yamlBF700A0A80D64F760600B14A75039A0A
Open/ce/ca/aws/network-firewall/firewall-subnet-change-protection/prod.logic.yaml390F5C62C20FEFC94190C653217768E1
Open/ce/ca/aws/network-firewall/firewall-subnet-change-protection/test-data.jsonC4C13C26D0AE04C6A1F814AB07F787C4
Open/types/CA10A2__CaAwsNetworkFirewallFirewall__c/object.extracts.yaml1C8CC5F51CDBC5E9DDA99B7A78B23B7A

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/network-firewall/firewall-subnet-change-protection/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/network-firewall/firewall-subnet-change-protection/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/network-firewall/firewall-subnet-change-protection/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/network-firewall/firewall-subnet-change-protection/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/network-firewall/firewall-subnet-change-protection/prod.logic.yaml

Content​

Open File

---
inputType: "CA10A2__CaAwsNetworkFirewallFirewall__c"
importExtracts:
- file: "/types/CA10A2__CaAwsNetworkFirewallFirewall__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The Firewall is not ready."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10A2__status__c"
right:
TEXT: "READY"
- status: "INCOMPLIANT"
currentStateMessage: "Subnet change protection is disabled for the Network Firewall."
remediationMessage: "Enable subnet change protection in the firewall settings to prevent accidental modification of firewall subnets."
check:
IS_EQUAL:
left:
EXTRACT: "CA10A2__subnetChangeProtection__c"
right:
TEXT: "false"
- status: "COMPLIANT"
currentStateMessage: "Subnet change protection is enabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10A2__subnetChangeProtection__c"
right:
TEXT: "true"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."