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.
resource "google_service_networking_peered_dns_domain" "name" {
project = 10000000
name = "example-com"
network = "default"
dns_suffix = "example.com."
service = "peering-service"
}
The following arguments are supported:
project
- (Optional) The producer project number. If not provided, the provider project is used.
name
- (Required) Internal name used for the peered DNS domain.
network
- (Required) The network in the consumer project.
dns_suffix
- (Required) The DNS domain suffix of the peered DNS domain. Make sure to suffix with a .
(dot).
service
- (Optional) Private service connection between service and consumer network, defaults to servicenetworking.googleapis.com
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format services/{{service}}/projects/{{project}}/global/networks/{{network}}/peeredDnsDomains/{{name}}
parent
- an identifier for the resource with format services/{{service}}/projects/{{project}}/global/networks/{{network}}
This resource provides the following Timeouts configuration options: configuration options:
create
- Default is 20 minutes.read
- Default is 10 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.Project peered DNS domains can be imported using the service
, project
, network
and name
, where:
service
is the service connection, defaults to servicenetworking.googleapis.com
.project
is the producer project name.network
is the consumer network name.name
is the name of your peered DNS domain.
services/{service}/projects/{project}/global/networks/{network}/peeredDnsDomains/{name}
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}
This resource supports User Project Overrides.