Terraform AWS Network Firewall
AWS Network Firewall rule groups, firewall policies, firewalls, logging destinations, stateless and stateful inspection rules, and subnet placement for traffic filtering.
Controls enforced
These compliance controls are checked at terraform plan time.
- Network Firewall firewalls should have deletion protection enabled(low effort)
- Network Firewall policies should have default stateless action set to drop or forward for fragmented packets(low effort)
- Network Firewall policies should have default stateless action set to drop or forward for full packets(low effort)
- Network Firewall firewalls should have subnet change protection enabled(low effort)
Quick start
See the Get Started guide and Registry Endpoints for details on how to customize the module for your requirements.
Migration from upstream
Already using terraform-aws-modules? Change only the source URL:
module "network-firewall" {
source = "terraform-aws-modules/network-firewall/aws"
version = "1.0"
}module "network-firewall" {
source = "soc2.compliance.tf/terraform-aws-modules/network-firewall/aws"
version = "1.0"
}Same arguments. Same outputs. Controls are checked at terraform plan. See the Migration Guide for step-by-step instructions.
Reversibility
No lock-in. Switch back by reverting the source URL:
module "network-firewall" {
source = "terraform-aws-modules/network-firewall/aws"
}Run terraform init -upgrade. Terraform state is unchanged — same resource addresses, same provider, no compliance.tf-specific resources. Controls you already applied remain in AWS.
Mapped compliance frameworks
Framework coverage
Which controls from this module are active under each framework endpoint.
● enforced by default · ○ not activated by this endpoint