Retrieve information about a firewall policy.
data "aws_networkfirewall_firewall_policy" "example" {
name = var.firewall_policy_name
}
data "aws_networkfirewall_firewall_policy" "example" {
arn = var.firewall_policy_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.
One or more of the following arguments are required:
arn
- ARN of the firewall policy.name
- Descriptive name of the firewall policy.This data source exports the following attributes in addition to the arguments above:
description
- Description of the firewall policy.firewall_policy
- The policy for the specified firewall policy.tags
- Key-value tags for the firewall policy.update_token
- Token used for optimistic locking.