Skip to content

Commit fcc0a25

Browse files
FD: Fixed variable interpolation. Initialized necessary property
1 parent fbeefeb commit fcc0a25

File tree

1 file changed

+4
-3
lines changed
  • modules/azure/frontdoor_standard

1 file changed

+4
-3
lines changed

modules/azure/frontdoor_standard/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ resource "azurerm_cdn_frontdoor_endpoint" "fd_endpoint" {
3232
resource "azurerm_cdn_frontdoor_custom_domain" "fd_default_domain" {
3333
name = "default"
3434
cdn_frontdoor_profile_id = azurerm_cdn_frontdoor_profile.fd_profile.id
35-
host_name = "{var.name}.azurefd.net"
35+
host_name = "${var.name}.azurefd.net"
3636

3737
tls {
3838
certificate_type = "ManagedCertificate"
@@ -147,10 +147,11 @@ resource "azurerm_cdn_frontdoor_route" "fd_forwarding_routes" {
147147
cdn_frontdoor_origin_ids = [azurerm_cdn_frontdoor_origin.fd_origins[each.value.origin_group_name].id]
148148
cdn_frontdoor_custom_domain_ids = [azurerm_cdn_frontdoor_custom_domain.fd_custom_domains[each.value.custom_domain_name].id]
149149

150-
forwarding_protocol = "HttpsOnly"
150+
enabled = each.value.enabled
151151
patterns_to_match = each.value.patterns_to_match
152152
supported_protocols = each.value.supported_protocols
153-
enabled = each.value.enabled
153+
https_redirect_enabled = false
154+
forwarding_protocol = "HttpsOnly"
154155
link_to_default_domain = false
155156
}
156157

0 commit comments

Comments
 (0)