network-firewall

binbashar/network-firewall/aws

Terraform Module HCL AWS

Terraform module for creating AWS Network Firewall resources

Install
module "network-firewall" {
source = "binbashar/network-firewall/aws"
version = "0.1.4"
}
plain text: /constructs/tfmod-binbashar-network-firewall-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-network-firewall Overview This mdule creates AWS Network firewall resources, which includes: Network Firewall Network Firewall Policy Network Firewall Stateless groups and rules Network Firewall Stateful groups and rules Use custom Suricata Rules Use Managed Rules Use “Strict, Drop Established” rule order Use stateful rules instead of stateless rules Use $HOME_NET Example Deny domain access** `` module "firewall" { source = "github.com/binbashar/terraform-aws-network-firewall.git" name = "firewall" description = "AWS Network Firewall example" vpc_id = "vpc-12345678910111213" subnet_mapping = { us-east-1a = "subnet-23456780101112131" us-east-1b = "subnet-13121110987654321" } # Stateless rule groups stateless_rule_groups = { stateless-group-1 = { description = "Stateless rules"

Inputs (28)
NameTypeDescriptionDefault
subnet_mappingmap(any)Subnets map. Each subnet must belong to a different Availability Zone in the VPC required
namestringA friendly name of the firewall. required
vpc_idstringThe unique identifier of the VPC where AWS Network Firewall should create the fi required
log_retention_in_daysnumberThe number of days to retain log events in the log group90
stateful_suricata_rule_groupsmap(object({ description Optional stateful Suricata rule groups{}
managed_rule_groupslist(object({ name List of managed rule groups with ARNs, priorities, and action modes[]
home_net_cidrlist(string)List of CIDR blocks for the internal network (HOME_NET)[]
external_net_cidrlist(string)List of CIDR blocks for the externla network (EXTERNAL_NET)[]
log_typelist(string)Log types to enable. Options: FLOW, ALERT[ "FLOW", "ALERT" ]
create_network_firewallboolSet to false if you just want to create the security policy, stateless and statetrue
stateless_default_actionslist(any)Set of actions to take on a packet if it does not match any of the stateless rul[ "aws:aws:forward_to_sfe" ]
s3_bucket_namestringS3 bucket namenull
subnet_change_protectionboolA boolean flag indicating whether it is possible to change the associated subnetfalse
tagsmap(string)Map of resource tags to associate with the resource. If configured with a provid{}
rule_orderstringDefine the rule evaluation order for stateful rule groups. Options: STRICT_ORDER"DEFAULT_ACTION_ORDER"
kinesis_stream_arnstringAmazon Resource Name (ARN) of the Kinesis Data Firehose streamnull
stateless_fragment_default_actionslist(any)Set of actions to take on a fragmented packet if it does not match any of the st[ "aws:drop" ]
cloudwatch_log_group_namestringCloudWatch log group namenull
firewall_policy_change_protectionboolA boolean flag indicating whether it is possible to change the associated firewafalse
firewall_policy_namestring A friendly name of the firewall policy.null
stateful_rule_groupsanyMap of stateful rules groups.{}
stream_exception_policystringDefine the action to take on a packet that does not match any stateful rule grou"DROP"
enable_firewall_logsboolEnable logging for the firewallfalse
Outputs (7)
id — The ID that identifies the firewall.
arn — The Amazon Resource Name (ARN) that identifies the firewall.
network_firewall_policy — The Firewall Network policy created
network_firewall_status — Nested list of information about the current status of the firewall.
network_firewall_stateless_group — Map of stateless group rules
network_firewall_stateful_group — Map of stateful group rules
network_firewall_suricata_rule_groups — Map of Suricata rule groups
Resources (5)
aws_cloudwatch_log_groupaws_networkfirewall_firewallaws_networkfirewall_firewall_policyaws_networkfirewall_logging_configurationaws_networkfirewall_rule_group
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.4
Cloud AWS
★ Stars10
Forks7
Total downloads6.0k
Inputs28
Outputs7
Resources5
Examples2
LicenseApache-2.0
Namespacebinbashar
Updated