Skip to content

Commit

Permalink
Merge pull request #863 from DFE-Digital/feature/er-716-azure-prod-wo…
Browse files Browse the repository at this point in the history
…rkflows

ER-716: Remove dynamic IP restriction
  • Loading branch information
sunny-sidhu-and authored Sep 26, 2023
2 parents 3215884 + 81323be commit 2339908
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
8 changes: 4 additions & 4 deletions terraform-azure/terraform-azure-database/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
11 changes: 0 additions & 11 deletions terraform-azure/terraform-azure-web/webapp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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] : []
Expand Down

0 comments on commit 2339908

Please sign in to comment.