From 81323bedfa1620a663d59f54d2dd0fadba46ad2e Mon Sep 17 00:00:00 2001 From: Sunny Sidhu Date: Tue, 26 Sep 2023 18:01:12 +0100 Subject: [PATCH] ER-716: Remove dynamic IP restriction --- terraform-azure/terraform-azure-database/variables.tf | 8 ++++---- terraform-azure/terraform-azure-web/webapp.tf | 11 ----------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/terraform-azure/terraform-azure-database/variables.tf b/terraform-azure/terraform-azure-database/variables.tf index 8dc365252..8ead0c389 100644 --- a/terraform-azure/terraform-azure-database/variables.tf +++ b/terraform-azure/terraform-azure-database/variables.tf @@ -13,13 +13,13 @@ variable "resource_name_prefix" { type = string } -variable "psqlfs_subnet_id" { - description = "ID of the delegated Subnet for the Database Server" +variable "environment" { + description = "Environment to deploy resources" type = string } -variable "environment" { - description = "Environment to deploy resources" +variable "psqlfs_subnet_id" { + description = "ID of the delegated Subnet for the Database Server" type = string } diff --git a/terraform-azure/terraform-azure-web/webapp.tf b/terraform-azure/terraform-azure-web/webapp.tf index e736ecfd3..73fcac766 100644 --- a/terraform-azure/terraform-azure-web/webapp.tf +++ b/terraform-azure/terraform-azure-web/webapp.tf @@ -47,17 +47,6 @@ resource "azurerm_linux_web_app" "webapp" { } } - dynamic "ip_restriction" { - # Deploy App Gateway rules only to the Test and Production subscription - for_each = var.environment != "development" ? [1] : [] - content { - name = "Allow health check" - action = "Allow" - priority = 400 - ip_address = "127.0.0.1/0" - } - } - dynamic "ip_restriction" { # Deploy App Gateway rules only to the Test and Production subscription for_each = var.environment != "development" ? [1] : []