Skip to content
1 change: 1 addition & 0 deletions modules/composer_net/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion modules/composer_net/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions modules/composer_net/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Loading