Skip to content

Commit

Permalink
[#IOPID-1971] Change configurations to pointing new webprof fn in ITN (
Browse files Browse the repository at this point in the history
…#1343)

Co-authored-by: Greta Quadrati <[email protected]>
  • Loading branch information
BurnedMarshal and gquadrati authored Dec 4, 2024
1 parent a2a079f commit d5ef780
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/domains/citizen-auth-app/09_function_profile.tf
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ locals {

# Login Email variables
MAGIC_LINK_SERVICE_API_KEY = data.azurerm_key_vault_secret.ioweb_profile_function_api_key.value
MAGIC_LINK_SERVICE_PUBLIC_URL = format("https://%s-%s-%s-ioweb-profile-fn.azurewebsites.net", var.prefix, var.env_short, var.location_short)
MAGIC_LINK_SERVICE_PUBLIC_URL = format("https://%s-auth-webprof-func-01.azurewebsites.net", local.common_project_itn)
IOWEB_ACCESS_REF = "https://ioapp.it"
#

Expand Down
2 changes: 1 addition & 1 deletion src/domains/ioweb-app/07_apim_itn.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module "apim_itn_bff_api" {
product_ids = ["io-web-api"]
subscription_required = false

service_url = format(local.bff_backend_url, module.function_ioweb_profile.default_hostname)
service_url = format(local.bff_backend_url, data.azurerm_linux_function_app.function_web_profile.default_hostname)

description = "Bff API for IO Web platform"
display_name = "IO Web - Bff"
Expand Down
2 changes: 1 addition & 1 deletion src/domains/ioweb-app/07_apim_v2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module "apim_v2_bff_api" {
product_ids = ["io-web-api"]
subscription_required = false

service_url = format(local.bff_backend_url, module.function_ioweb_profile.default_hostname)
service_url = format(local.bff_backend_url, data.azurerm_linux_function_app.function_web_profile.default_hostname)

description = "Bff API for IO Web platform"
display_name = "IO Web - Bff"
Expand Down
9 changes: 9 additions & 0 deletions src/domains/ioweb-app/99_data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,13 @@ data "azurerm_key_vault" "key_vault_common" {
data "azurerm_key_vault_secret" "io_fn3_services_key_secret" {
name = "ioweb-profile-api-key-apim"
key_vault_id = data.azurerm_key_vault.key_vault_common.id
}

###########################
# Function io-web-profile #
###########################

data "azurerm_linux_function_app" "function_web_profile" {
name = format("%s-webprof-func-01", local.short_project_itn)
resource_group_name = format("%s-webprof-rg-01", local.short_project_itn)
}
1 change: 1 addition & 0 deletions src/domains/ioweb-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
| [azurerm_key_vault_secret.io_fn3_services_key_secret](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
| [azurerm_key_vault_secret.spid_login_api_key](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
| [azurerm_key_vault_secret.spid_login_jwt_pub_key](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
| [azurerm_linux_function_app.function_web_profile](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/linux_function_app) | data source |
| [azurerm_log_analytics_workspace.log_analytics](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/log_analytics_workspace) | data source |
| [azurerm_monitor_action_group.email](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/monitor_action_group) | data source |
| [azurerm_monitor_action_group.error_action_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/monitor_action_group) | data source |
Expand Down

0 comments on commit d5ef780

Please sign in to comment.