Skip to content

Commit

Permalink
Merge branch 'main' into IOPID-2507-remove-old-fn-lollipop
Browse files Browse the repository at this point in the history
  • Loading branch information
Krusty93 authored Dec 18, 2024
2 parents bca4908 + 75a5fba commit 88280c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/common/_modules/app_backend/app_settings.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ locals {
AUTHENTICATION_BASE_PATH = ""

// FUNCTIONS
API_URL = "https://${var.backend_hostnames.app[1]}/api/v1"
API_URL = "https://${var.backend_hostnames.app[0]}/api/v1"
API_KEY = data.azurerm_key_vault_secret.app_backend_API_KEY.value
CGN_API_URL = "https://${var.backend_hostnames.cgn}"
CGN_API_KEY = data.azurerm_key_vault_secret.app_backend_CGN_API_KEY.value
Expand Down
5 changes: 2 additions & 3 deletions src/common/prod/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ data "azurerm_linux_function_app" "function_assets_cdn" {
}

data "azurerm_linux_function_app" "function_profile" {
count = local.function_profile_count
name = "${local.project_itn}-auth-profile-fn-0${count.index + 1}"
resource_group_name = "${local.project_itn}-profile-rg-0${count.index + 1}"
name = "${local.project_itn}-auth-profile-fn-01"
resource_group_name = "${local.project_itn}-profile-rg-01"
}

data "azurerm_linux_function_app" "app_messages_xl" {
Expand Down
2 changes: 1 addition & 1 deletion src/common/prod/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ locals {
}

backend_hostnames = {
app = [for key, value in data.azurerm_linux_function_app.function_profile : value.default_hostname]
app = [data.azurerm_linux_function_app.function_profile.default_hostname]
app_messages = [for key, value in data.azurerm_linux_function_app.app_messages_xl : value.default_hostname]
assets_cdn = data.azurerm_linux_function_app.function_assets_cdn.default_hostname
services_app_backend = data.azurerm_linux_function_app.services_app_backend_function_app.default_hostname
Expand Down

0 comments on commit 88280c5

Please sign in to comment.