google_dataplex_lake

The Dataplex Lake resource

Example Usage - basic_lake

A basic example of a dataplex lake

resource "google_dataplex_lake" "primary" {
  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:


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 metastore 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

Lake can be imported using any of these accepted formats:

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

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

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

$ terraform import google_dataplex_lake.default projects/{{project}}/locations/{{location}}/lakes/{{name}}
$ terraform import google_dataplex_lake.default {{project}}/{{location}}/{{name}}
$ terraform import google_dataplex_lake.default {{location}}/{{name}}