diff --git a/modules/composer_net/README.md b/modules/composer_net/README.md index ead485e..ac3dd9b 100644 --- a/modules/composer_net/README.md +++ b/modules/composer_net/README.md @@ -9,6 +9,7 @@ This example illustrates how to use the `composer-net` module. Please see exampl |------|-------------|------|---------|:--------:| | cloud\_composer\_network\_ipv4\_cidr\_block | The CIDR block from which IP range in tenant project will be reserved. | `string` | `null` | no | | composer\_env\_name | Name of Cloud Composer Environment | `string` | n/a | yes | +| dns\_zone\_name | Composer DNS private zone name | `string` | `"composer-google-cloud-dns"` | no | | gke\_pods\_services\_ip\_ranges | The secondary IP ranges for the GKE Pods and Services IP ranges | `list(string)` | n/a | yes | | gke\_subnet\_ip\_range | The GKE subnet IP range | `list(string)` | n/a | yes | | master\_ipv4\_cidr | The CIDR block from which IP range in tenant project will be reserved for the master. | `string` | `null` | no | diff --git a/modules/composer_net/dns.tf b/modules/composer_net/dns.tf index 1bbbbcc..85b2fdc 100644 --- a/modules/composer_net/dns.tf +++ b/modules/composer_net/dns.tf @@ -17,7 +17,7 @@ composer.cloud.google.com ***************************************/ resource "google_dns_managed_zone" "composer_cloud_zone" { - name = "composer-google-cloud-dns" + name = var.dns_zone_name project = var.network_project_id dns_name = "composer.cloud.google.com." description = "composer.cloud.google.com zone" diff --git a/modules/composer_net/variables.tf b/modules/composer_net/variables.tf index 43bc352..f90c52d 100644 --- a/modules/composer_net/variables.tf +++ b/modules/composer_net/variables.tf @@ -71,3 +71,9 @@ variable "composer_env_name" { description = "Name of Cloud Composer Environment" type = string } + +variable "dns_zone_name" { + description = "Composer DNS private zone name" + type = string + default = "composer-google-cloud-dns" +}