π§ AWS Network Firewall Subnet Change Protection is not enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/network-firewall/firewall-subnet-change-protection/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS NetworkFirewall Firewall
- π AWS NetworkFirewall Firewall - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-01-17T12:02:55.003969945Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/network-firewall/firewall-subnet-change-protection/policy.yaml | BF700A0A80D64F760600B14A75039A0A |
| Open | /ce/ca/aws/network-firewall/firewall-subnet-change-protection/prod.logic.yaml | 390F5C62C20FEFC94190C653217768E1 |
| Open | /ce/ca/aws/network-firewall/firewall-subnet-change-protection/test-data.json | C4C13C26D0AE04C6A1F814AB07F787C4 |
| Open | /types/CA10A2__CaAwsNetworkFirewallFirewall__c/object.extracts.yaml | 1C8CC5F51CDBC5E9DDA99B7A78B23B7A |
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β
---
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."