Skip to content

Commit

Permalink
[#IOPID-2491] legacy fn-lv removal (#1317)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcogabbo authored Nov 19, 2024
1 parent 1e3bc3f commit 2b70a02
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 373 deletions.
48 changes: 0 additions & 48 deletions src/domains/citizen-auth-app/01_network_itn.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,54 +109,6 @@ resource "azurerm_private_endpoint" "staging_function_lollipop_itn_sites" {
tags = var.tags
}

## fn-fast-login-itn

resource "azurerm_private_endpoint" "function_fast_login_itn_sites" {
name = "${local.common_project_itn}-fast-login-fn-pep-01"
location = local.itn_location
resource_group_name = azurerm_resource_group.fast_login_rg_itn.name
subnet_id = data.azurerm_subnet.itn_pep.id

private_service_connection {
name = "${local.common_project_itn}-fast-login-fn-pep-01"
private_connection_resource_id = module.function_fast_login_itn.id
is_manual_connection = false
subresource_names = ["sites"]
}

private_dns_zone_group {
name = "private-dns-zone-group"
private_dns_zone_ids = [data.azurerm_private_dns_zone.privatelink_azurewebsites_net.id]
}

depends_on = [module.function_fast_login_itn]

tags = var.tags
}

resource "azurerm_private_endpoint" "staging_function_fast_login_itn_sites" {
name = "${local.common_project_itn}-fast-login-fn-staging-pep-01"
location = local.itn_location
resource_group_name = azurerm_resource_group.fast_login_rg_itn.name
subnet_id = data.azurerm_subnet.itn_pep.id

private_service_connection {
name = "${local.common_project_itn}-fast-login-fn-staging-pep-01"
private_connection_resource_id = module.function_fast_login_itn.id
is_manual_connection = false
subresource_names = ["sites-${module.function_fast_login_staging_slot_itn.name}"]
}

private_dns_zone_group {
name = "private-dns-zone-group"
private_dns_zone_ids = [data.azurerm_private_dns_zone.privatelink_azurewebsites_net.id]
}

depends_on = [module.function_fast_login_itn, module.function_fast_login_staging_slot_itn]

tags = var.tags
}

## itn-profile-fn

resource "azurerm_private_endpoint" "function_profile_itn_sites" {
Expand Down
6 changes: 0 additions & 6 deletions src/domains/citizen-auth-app/04_redis.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Citizen-auth domain Redis Common
data "azurerm_redis_cache" "redis_common_itn" {
name = format("%s-redis-std-v6", local.project_itn)
resource_group_name = data.azurerm_resource_group.data_rg_itn.name
}

### IO-core domain Redis Common
data "azurerm_resource_group" "core_domain_common_rg" {
name = format("%s-rg-common", local.product)
Expand Down
5 changes: 0 additions & 5 deletions src/domains/citizen-auth-app/06_storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ data "azurerm_storage_account" "lollipop_assertion_storage" {
resource_group_name = format("%s-%s-data-rg", local.product, var.domain)
}

data "azurerm_storage_account" "immutable_lv_audit_logs_storage" {
name = replace(format("%s-lv-logs-im-st", local.product), "-", "")
resource_group_name = format("%s-%s-data-rg", local.product, var.domain)
}

data "azurerm_storage_account" "logs" {
name = replace(format("%s-stlogs", local.product), "-", "")
resource_group_name = format("%s-rg-operations", local.product)
Expand Down
251 changes: 0 additions & 251 deletions src/domains/citizen-auth-app/07_function_fast_login.tf

This file was deleted.

37 changes: 0 additions & 37 deletions src/domains/citizen-auth-app/99_variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -173,43 +173,6 @@ variable "function_lollipop_autoscale_default" {
default = 3
}

# Function Fast Login

variable "cidr_subnet_fnfastlogin_itn" {
type = list(string)
description = "Function Fast Login on ITN region address space."
}

variable "function_fastlogin_kind" {
type = string
description = "App service plan kind"
default = null
}

variable "function_fastlogin_sku_size" {
type = string
description = "App service plan sku size"
default = null
}

variable "function_fastlogin_autoscale_minimum" {
type = number
description = "The minimum number of instances for this resource."
default = 1
}

variable "function_fastlogin_autoscale_maximum" {
type = number
description = "The maximum number of instances for this resource."
default = 3
}

variable "function_fastlogin_autoscale_default" {
type = number
description = "The number of instances that are available for scaling if metrics are not available for evaluation."
default = 1
}

####################
# Session manager ##
####################
Expand Down
Loading

0 comments on commit 2b70a02

Please sign in to comment.