Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Sun committed Oct 24, 2024
1 parent 4a19740 commit 238fd09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ESLZ/front-door.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ 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
}
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
Expand Down
4 changes: 2 additions & 2 deletions module.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down

0 comments on commit 238fd09

Please sign in to comment.