Network Firewall firewalls should have subnet change protection enabled
Checks that subnet change protection is on for the Network Firewall firewall, protecting its subnet associations, and so the endpoints traffic is routed through, against accidental changes.
- service
- NetworkFirewall
- severity
- Medium
- scope
- evaluated in every region
How to fix it
In the console
VPC → Network Firewall → Firewalls → the firewall → Firewall details → Change protections
- Subnet change protection
- Enabled
With the AWS CLI
aws network-firewall update-subnet-change-protection --firewall-arn <firewall-arn> --subnet-change-protection --region <region>With Terraform
resource "aws_networkfirewall_firewall" "this" {
name = var.firewall_name
firewall_policy_arn = var.firewall_policy_arn
vpc_id = var.vpc_id
subnet_change_protection = true
subnet_mapping {
subnet_id = var.firewall_subnet_id
}
}
See which of your accounts this check is failing on.
Book a live scan