Skip to content

googleProjectServicePeeredDnsDomain

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

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.serviceNetworkingPeeredDnsDomain.ServiceNetworkingPeeredDnsDomain(
  this,
  "name",
  {
    dns_suffix: "example.com.",
    name: "example-com",
    network: "default",
    project: 10000000,
    service: "peering-service",
  }
);

Argument Reference

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.

  • dnsSuffix - (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 servicenetworkingGoogleapisCom

Attributes Reference

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

Timeouts

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.

Import

Project peered DNS domains can be imported using the service, project, network and name, e.g.

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

Where:

  • service is the service connection, defaults to servicenetworkingGoogleapisCom.
  • project is the producer project name.
  • network is the consumer network name.
  • name is the name of your peered DNS domain.

User Project Overrides

This resource supports User Project Overrides.