mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-03 08:42:39 +00:00
Add an example for private DNS Managed Zones (#2735)
<!-- This change is generated by MagicModules. --> /cc @drebes
This commit is contained in:
parent
c5df1527ae
commit
44ba598a4f
|
@ -55,6 +55,50 @@ resource "random_id" "rnd" {
|
||||||
byte_length = 4
|
byte_length = 4
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
## Example Usage - Dns Managed Zone Private
|
||||||
|
|
||||||
|
|
||||||
|
```hcl
|
||||||
|
resource "google_dns_managed_zone" "private-zone" {
|
||||||
|
name = "private-zone"
|
||||||
|
dns_name = "private.example.com."
|
||||||
|
description = "Example private DNS zone"
|
||||||
|
labels = {
|
||||||
|
foo = "bar"
|
||||||
|
}
|
||||||
|
|
||||||
|
visibility = "private"
|
||||||
|
|
||||||
|
private_visibility_config {
|
||||||
|
networks {
|
||||||
|
network_url = "${google_compute_network.network-1.self_link}"
|
||||||
|
}
|
||||||
|
networks {
|
||||||
|
network_url = "${google_compute_network.network-2.self_link}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
forwarding_config {
|
||||||
|
target_name_servers {
|
||||||
|
ipv4_address = "172.16.1.10"
|
||||||
|
}
|
||||||
|
target_name_servers {
|
||||||
|
ipv4_address = "172.16.1.20"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "google_compute_network" "network-1" {
|
||||||
|
name = "network-1"
|
||||||
|
auto_create_subnetworks = false
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "google_compute_network" "network-2" {
|
||||||
|
name = "network-2"
|
||||||
|
auto_create_subnetworks = false
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Argument Reference
|
## Argument Reference
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user