diff --git a/ESLZ/front-door.tfvars b/ESLZ/front-door.tfvars index 717650d..6f1b21e 100644 --- a/ESLZ/front-door.tfvars +++ b/ESLZ/front-door.tfvars @@ -57,7 +57,7 @@ front_doors ={ custom-domain1 = { host_name = "custom.example.com" internal_dns_record = false - internal_dsn_zone_name = null + internal_dns_zone_name = null certificate_type = "ManagedCertificate" minimum_tls_version = "TLS12" ttl =3600 @@ -65,7 +65,7 @@ front_doors ={ custom-domain2 = { host_name = "www.custom.example.com" internal_dns_record = true - internal_dsn_zone_name = "zone1" + internal_dns_zone_name = "zone1" certificate_type = "ManagedCertificate" minimum_tls_version = "TLS12" ttl=3600 diff --git a/module.tf b/module.tf index 3e2781b..d45c67c 100644 --- a/module.tf +++ b/module.tf @@ -124,7 +124,7 @@ resource "azurerm_dns_cname_record" "cname_record" { depends_on = [azurerm_cdn_frontdoor_route.route, azurerm_cdn_frontdoor_security_policy.fd_security_policy] name = each.value.host_name - zone_name = var.zones[each.value.internal_dsn_zone_name].name + zone_name = var.zones[each.value.internal_dns_zone_name].name resource_group_name = var.resource_groups["DNS"].name ttl = try(each.value.ttl,3600) record = azurerm_cdn_frontdoor_endpoint.endpoint.host_name @@ -136,7 +136,7 @@ resource "azurerm_dns_txt_record" "txt_record" { if value.internal_dns_record == true } name = join(".", ["_dnsauth", "${each.value.host_name}"]) - zone_name = var.zones[each.value.internal_dsn_zone_name].name + zone_name = var.zones[each.value.internal_dns_zone_name].name resource_group_name = var.resource_groups["DNS"].name ttl = try(each.value.ttl,3600)