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
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.servicenetworking.PeeredDnsDomain;
import com.pulumi.gcp.servicenetworking.PeeredDnsDomainArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var name = new PeeredDnsDomain("name", PeeredDnsDomainArgs.builder()
.dnsSuffix("example.com.")
.network("default")
.project(10000000)
.service("peering-service")
.build());
}
}Content copied to clipboard
Import
Project peered DNS domains can be imported using the service, project, network and name, e.g.
$ pulumi import gcp:servicenetworking/peeredDnsDomain:PeeredDnsDomain my_domain services/{service}/projects/{project}/global/networks/{network}/peeredDnsDomains/{name}Content copied to clipboard
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.