Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fix(terraform): Front Door Terraform resource specification fix (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
candiduslynx authored Jul 20, 2022
1 parent c37eafd commit 347bb8e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions terraform/frondoor/modules/test/frontdoors.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ resource "azurerm_resource_group" "frontdoor" {
}

resource "azurerm_frontdoor" "test" {
name = "${var.prefix}-frontdoor"
tags = var.tags
location = azurerm_resource_group.frontdoor.location
name = "${var.prefix}-frontdoor"
tags = var.tags

resource_group_name = azurerm_resource_group.frontdoor.name

enforce_backend_pools_certificate_name_check = false
Expand All @@ -15,7 +15,7 @@ resource "azurerm_frontdoor" "test" {
name = "exampleRoutingRule1"
accepted_protocols = ["Http", "Https"]
patterns_to_match = ["/*"]
frontend_endpoints = ["exampleFrontendEndpoint1"]
frontend_endpoints = ["${var.prefix}-frontdoor"]
forwarding_configuration {
forwarding_protocol = "MatchRequest"
backend_pool_name = "exampleBackendBing"
Expand Down Expand Up @@ -44,7 +44,7 @@ resource "azurerm_frontdoor" "test" {
}

frontend_endpoint {
name = "exampleFrontendEndpoint1"
host_name = "example-FrontDoor.azurefd.net"
name = "${var.prefix}-frontdoor"
host_name = "${var.prefix}-frontdoor.azurefd.net"
}
}

0 comments on commit 347bb8e

Please sign in to comment.