From 5284d1530b89f944041edb47c14a7a9d561f8119 Mon Sep 17 00:00:00 2001 From: Colin Saliceti Date: Wed, 25 Sep 2024 17:50:51 +0100 Subject: [PATCH] Remove app service IP restriction The app service will be accessed by a new front door in s189 after the domain migration. Remove IP restriction to uncouple it from the existing front door. --- terraform/app.tf | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/terraform/app.tf b/terraform/app.tf index 21ba18f4..7ac1421c 100644 --- a/terraform/app.tf +++ b/terraform/app.tf @@ -110,20 +110,6 @@ resource "azurerm_linux_web_app" "aytq-app" { http2_enabled = true minimum_tls_version = "1.2" health_check_path = "/health" - ip_restriction = var.domain != null ? [{ - name = "FrontDoor" - action = "Allow" - priority = 1 - headers = [{ - x_azure_fdid = try([local.infrastructure_secrets.FRONTDOOR_ID], []) - x_fd_health_probe = [] - x_forwarded_for = [] - x_forwarded_host = [] - }] - service_tag = "AzureFrontDoor.Backend" - ip_address = null - virtual_network_subnet_id = null - }] : [] } app_settings = local.aytq_env_vars