AWS Network Firewall Rule Group

This page shows how to write Terraform and CloudFormation for Network Firewall Rule Group and write them securely.

aws_networkfirewall_rule_group (Terraform)

The Rule Group in Network Firewall can be configured in Terraform with the resource name aws_networkfirewall_rule_group. The following sections describe 4 examples of how to use the resource and its parameters.

Example Usage from GitHub

network_firewall.tf#L1
resource "aws_networkfirewall_rule_group" "useless_rule" {
  capacity = 100
  name     = "uselessRule"
  type     = "STATELESS"
  rule_group {
    rules_source {
firewall-rules.tf#L1
resource "aws_networkfirewall_rule_group" "allow-local" {
  capacity = 1000
  name     = "allow-local-ranges"
  type     = "STATELESS"
  rule_group {
    rules_source {
10_111_0_0_fw.tf#L39
resource "aws_networkfirewall_rule_group" "block_2222" {
  capacity = 100
  name     = "block-2222"
  type     = "STATEFUL"

  rule_group {
network_firewall.tf#L60
resource "aws_networkfirewall_rule_group" "drop_icmp_traffic_fw_rule_group" {
  name     = "drop-icmp-traffic-fw-rule-group"
  capacity = 100
  type     = "STATELESS"

  rule_group {

Parameters

Explanation in Terraform Registry

Provides an AWS Network Firewall Rule Group Resource

AWS::NetworkFirewall::RuleGroup (CloudFormation)

The RuleGroup in NetworkFirewall can be configured in CloudFormation with the resource name AWS::NetworkFirewall::RuleGroup. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Explanation in CloudFormation Registry

Use the AWS::NetworkFirewall::RuleGroup to define a reusable collection of stateless or stateful network traffic filtering rules. You use rule groups in an AWS::NetworkFirewall::FirewallPolicy to specify the filtering behavior of an AWS::NetworkFirewall::Firewall.

Frequently asked questions

What is AWS Network Firewall Rule Group?

AWS Network Firewall Rule Group is a resource for Network Firewall of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Network Firewall Rule Group?

For Terraform, the keithrozario/firewall_egress, toddlers/aws-network-firewall-workflow and ericdahl/tf-vpc-sandbox source code examples are useful. See the Terraform Example section for further details.