google_compute_network_firewall_policy

The Compute NetworkFirewallPolicy resource

Open in Cloud Shell

Example Usage - Network Firewall Policy Full

resource "google_compute_network_firewall_policy" "policy" {
  name = "tf-test-policy"
  description = "Terraform test"
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

NetworkFirewallPolicy can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import NetworkFirewallPolicy using one of the formats above. For example:

import {
  id = "projects/{{project}}/global/firewallPolicies/{{name}}"
  to = google_compute_network_firewall_policy.default
}

When using the terraform import command, NetworkFirewallPolicy can be imported using one of the formats above. For example:

$ terraform import google_compute_network_firewall_policy.default projects/{{project}}/global/firewallPolicies/{{name}}
$ terraform import google_compute_network_firewall_policy.default {{project}}/{{name}}
$ terraform import google_compute_network_firewall_policy.default {{name}}

User Project Overrides

This resource supports User Project Overrides.