google_network_security_firewall_endpoint_association

Firewall endpoint association links a firewall endpoint to a VPC network in the same zone. After you define this association, Cloud Firewall forwards the zonal workload traffic in your VPC network that requires layer 7 inspection to the attached firewall endpoint.

To get more information about FirewallEndpointAssociation, see:

Example Usage - Network Security Firewall Endpoint Association Basic

resource "google_network_security_firewall_endpoint" "default" {
  provider    = google-beta
  name        = "my-firewall-endpoint"
  parent      = "organizations/123456789"
  location    = "us-central1-a"

  labels = {
    foo = "bar"
  }
}

resource "google_network_security_firewall_endpoint_association" "default_association" {
  provider    = google-beta
  name        = "my-firewall-endpoint-association"
  parent      = "projects/my-project-name"
  location    = "us-central1-a"

  labels = {
    foo = "bar"
  }
}

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

FirewallEndpointAssociation can be imported using any of these accepted formats:

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

import {
  id = "{{parent}}/locations/{{location}}/firewallEndpointAssociations/{{name}}"
  to = google_network_security_firewall_endpoint_association.default
}

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

$ terraform import google_network_security_firewall_endpoint_association.default {{parent}}/locations/{{location}}/firewallEndpointAssociations/{{name}}