Resource: aws_networkfirewall_firewall

Provides an AWS Network Firewall Firewall Resource

Example Usage

resource "aws_networkfirewall_firewall" "example" {
  name                = "example"
  firewall_policy_arn = aws_networkfirewall_firewall_policy.example.arn
  vpc_id              = aws_vpc.example.id
  subnet_mapping {
    subnet_id = aws_subnet.example.id
  }

  tags = {
    Tag1 = "Value1"
    Tag2 = "Value2"
  }

  timeouts {
    create = "40m"
    update = "50m"
    delete = "1h"
  }
}

Argument Reference

This resource supports the following arguments:

Encryption Configuration

encryption_configuration settings for customer managed KMS keys. Remove this block to use the default AWS-managed KMS encryption (rather than setting type to AWS_OWNED_KMS_KEY).

Subnet Mapping

The subnet_mapping block supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import Network Firewall Firewalls using their arn. For example:

import {
  to = aws_networkfirewall_firewall.example
  id = "arn:aws:network-firewall:us-west-1:123456789012:firewall/example"
}

Using terraform import, import Network Firewall Firewalls using their arn. For example:

% terraform import aws_networkfirewall_firewall.example arn:aws:network-firewall:us-west-1:123456789012:firewall/example