google_dataplex_zone

The Dataplex Zone resource

Example Usage - basic_zone

A basic example of a dataplex zone

resource "google_dataplex_zone" "primary" {
  discovery_spec {
    enabled = false
  }

  lake     = google_dataplex_lake.basic.name
  location = "us-west1"
  name     = "zone"

  resource_spec {
    location_type = "MULTI_REGION"
  }

  type         = "RAW"
  description  = "Zone for DCL"
  display_name = "Zone for DCL"
  project      = "my-project-name"
  labels       = {}
}

resource "google_dataplex_lake" "basic" {
  location     = "us-west1"
  name         = "lake"
  description  = "Lake for DCL"
  display_name = "Lake for DCL"
  project      = "my-project-name"

  labels = {
    my-lake = "exists"
  }
}

Argument Reference

The following arguments are supported:

The discovery_spec block supports:

The resource_spec block supports:


Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

The csv_options block supports:

The json_options block supports:

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

Zone can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}}"
  to = google_dataplex_zone.default
}

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

$ terraform import google_dataplex_zone.default projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}}
$ terraform import google_dataplex_zone.default {{project}}/{{location}}/{{lake}}/{{name}}
$ terraform import google_dataplex_zone.default {{location}}/{{lake}}/{{name}}