google_project_service_peered_dns_domain

Allows management of a single peered DNS domain for an existing Google Cloud Platform project.

When using Google Cloud DNS to manage internal DNS, create peered DNS domains to make your DNS available to services like Google Cloud Build.

Example Usage

resource "google_service_networking_peered_dns_domain" "name" {
  project    = 10000000
  name       = "example-com"
  network    = "default"
  dns_suffix = "example.com."
  service    = "peering-service"
}

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: configuration options:

Import

Project peered DNS domains can be imported using the service, project, network and name, where:

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

import {
  id = "services/{service}/projects/{project}/global/networks/{network}/peeredDnsDomains/{name}"
  to = google_service_networking_peered_dns_domain.default
}

When using the terraform import command, project peered DNS domains can be imported using one of the formats above. For example:

$ terraform import google_service_networking_peered_dns_domain.default services/{service}/projects/{project}/global/networks/{network}/peeredDnsDomains/{name}

User Project Overrides

This resource supports User Project Overrides.