Data Source: aws_networkfirewall_firewall_policy

Retrieve information about a firewall policy.

Example Usage

Find firewall policy by name

data "aws_networkfirewall_firewall_policy" "example" {
  name = var.firewall_policy_name
}

Find firewall policy by ARN

data "aws_networkfirewall_firewall_policy" "example" {
  arn = var.firewall_policy_arn
}

Find firewall policy by name and ARN

data "aws_networkfirewall_firewall_policy" "example" {
  arn  = var.firewall_policy_arn
  name = var.firewall_policy_name
}

AWS Network Firewall does not allow multiple firewall policies with the same name to be created in an account. It is possible, however, to have multiple firewall policies available in a single account with identical name values but distinct arn values, e.g. firewall policies shared via a Resource Access Manager (RAM) share. In that case specifying arn, or name and arn, is recommended.

Argument Reference

One or more of the following arguments are required:

Attribute Reference

This data source exports the following attributes in addition to the arguments above: