Skip to content

Commit 61f1f40

Browse files
nleveeimrannayer
andauthored
feat: add dns private zone variable (#147)
Co-authored-by: Imran Nayer <[email protected]>
1 parent 3a12028 commit 61f1f40

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

modules/composer_net/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This example illustrates how to use the `composer-net` module. Please see exampl
99
|------|-------------|------|---------|:--------:|
1010
| cloud\_composer\_network\_ipv4\_cidr\_block | The CIDR block from which IP range in tenant project will be reserved. | `string` | `null` | no |
1111
| composer\_env\_name | Name of Cloud Composer Environment | `string` | n/a | yes |
12+
| dns\_zone\_name | Composer DNS private zone name | `string` | `"composer-google-cloud-dns"` | no |
1213
| gke\_pods\_services\_ip\_ranges | The secondary IP ranges for the GKE Pods and Services IP ranges | `list(string)` | n/a | yes |
1314
| gke\_subnet\_ip\_range | The GKE subnet IP range | `list(string)` | n/a | yes |
1415
| master\_ipv4\_cidr | The CIDR block from which IP range in tenant project will be reserved for the master. | `string` | `null` | no |

modules/composer_net/dns.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ composer.cloud.google.com
1717
***************************************/
1818

1919
resource "google_dns_managed_zone" "composer_cloud_zone" {
20-
name = "composer-google-cloud-dns"
20+
name = var.dns_zone_name
2121
project = var.network_project_id
2222
dns_name = "composer.cloud.google.com."
2323
description = "composer.cloud.google.com zone"

modules/composer_net/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,9 @@ variable "composer_env_name" {
7171
description = "Name of Cloud Composer Environment"
7272
type = string
7373
}
74+
75+
variable "dns_zone_name" {
76+
description = "Composer DNS private zone name"
77+
type = string
78+
default = "composer-google-cloud-dns"
79+
}

0 commit comments

Comments
 (0)