Switch to not including trailing period in root domain.

This commit is contained in:
Tom Alexander
2025-03-22 21:23:05 -04:00
parent 9d0acdac13
commit b576d44af0
3 changed files with 8 additions and 10 deletions

View File

@@ -1,7 +1,5 @@
# TODO: Switch to not requiring trailing period?
variable "dns_root" {
description = "DNS domain root with trailing period. Example: \"foo.bar.com.\""
description = "DNS domain root. Example: \"k8sdemo.mydomain.example\""
type = string
}
@@ -9,7 +7,7 @@ variable "dns_root" {
resource "google_dns_managed_zone" "zone" {
project = google_project.project.project_id
name = "dns-zone"
dns_name = var.dns_root
dns_name = "${var.dns_root}."
depends_on = [google_project_service.service["dns"], ]
}

View File

@@ -21,7 +21,7 @@ locals {
# }
# resource "google_cloud_quotas_quota_preference" "public_ip_per_project_region" {
# count = var.quota_email == null ? 0 : 1
# count = var.quota_email == null && var.public_ingress == true ? 0 : 1
# parent = "projects/${google_project.project.project_id}"
# name = "compute-IN-USE-ADDRESSES-per-project-region"
# dimensions = { region = var.region }