Network Firewall firewalls should have deletion protection enabled
Checks that deletion protection is on for the Network Firewall firewall, so a firewall that is inspecting traffic to, from or between VPCs cannot be deleted by accident.
- 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
- Deletion protection
- Enabled
With the AWS CLI
aws network-firewall update-firewall-delete-protection --firewall-arn <firewall-arn> --delete-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
delete_protection = true
subnet_mapping {
subnet_id = var.firewall_subnet_id
}
}
See which of your accounts this check is failing on.
Book a live scan