google_network_services_mesh

Mesh represents a logical configuration grouping for workload to workload communication within a service mesh. Routes that point to mesh dictate how requests are routed within this logical mesh boundary.

To get more information about Mesh, see:

Open in Cloud Shell

Example Usage - Network Services Mesh Basic

resource "google_network_services_mesh" "default" {
  provider    = google-beta
  name        = "my-mesh"
  labels      = {
    foo = "bar"
  }
  description = "my description"
  interception_port = 443
}
Open in Cloud Shell

Example Usage - Network Services Mesh No Port

resource "google_network_services_mesh" "default" {
  provider    = google-beta
  name        = "my-mesh-noport"
  labels      = {
    foo = "bar"
  }
  description = "my description"
}

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

Mesh can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/locations/global/meshes/{{name}}"
  to = google_network_services_mesh.default
}

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

$ terraform import google_network_services_mesh.default projects/{{project}}/locations/global/meshes/{{name}}
$ terraform import google_network_services_mesh.default {{project}}/{{name}}
$ terraform import google_network_services_mesh.default {{name}}

User Project Overrides

This resource supports User Project Overrides.