diff --git a/src/domains/functions/README.md b/src/domains/functions/README.md index a62ef00a8..83dbd22d6 100644 --- a/src/domains/functions/README.md +++ b/src/domains/functions/README.md @@ -72,6 +72,7 @@ | [azurerm_key_vault_secret.fn_services_mailup_secret](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source | | [azurerm_key_vault_secret.fn_services_mailup_username](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source | | [azurerm_key_vault_secret.fn_services_notification_service_blacklist_id](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source | +| [azurerm_key_vault_secret.fn_services_pagopa_ecommerce_api_key](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source | | [azurerm_key_vault_secret.fn_services_sandbox_fiscal_code](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source | | [azurerm_key_vault_secret.fn_services_webhook_channel_aks_url](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source | | [azurerm_key_vault_secret.fn_services_webhook_channel_url](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source | diff --git a/src/domains/functions/function_services.tf b/src/domains/functions/function_services.tf index 97498c26f..7a5f8ba66 100644 --- a/src/domains/functions/function_services.tf +++ b/src/domains/functions/function_services.tf @@ -46,6 +46,11 @@ data "azurerm_key_vault_secret" "fn_services_io_service_key" { key_vault_id = data.azurerm_key_vault.common.id } +data "azurerm_key_vault_secret" "fn_services_pagopa_ecommerce_api_key" { + name = "fnservices-PAGOPA-ECOMMERCE-API-KEY-PROD" + key_vault_id = data.azurerm_key_vault.common.id +} + # # APP CONFIGURATION # @@ -86,6 +91,8 @@ locals { // we keep this while we wait for new app version to be deployed MAIL_FROM_DEFAULT = "IO - l'app dei servizi pubblici " + PAGOPA_ECOMMERCE_BASE_URL = "https://api.platform.pagopa.it/checkout/auth/payments/v2" + IO_FUNCTIONS_ADMIN_BASE_URL = "https://api-app.internal.io.pagopa.it" APIM_BASE_URL = "https://api-app.internal.io.pagopa.it" DEFAULT_SUBSCRIPTION_PRODUCT_NAME = "io-services-api" @@ -123,6 +130,7 @@ locals { WEBHOOK_NOTIFICATION_SERVICE_BLACKLIST = data.azurerm_key_vault_secret.fn_services_notification_service_blacklist_id.value IO_FUNCTIONS_ADMIN_API_TOKEN = data.azurerm_key_vault_secret.fn_services_io_service_key.value APIM_SUBSCRIPTION_KEY = data.azurerm_key_vault_secret.fn_services_io_service_key.value + PAGOPA_ECOMMERCE_API_KEY = data.azurerm_key_vault_secret.fn_services_pagopa_ecommerce_api_key.value BETA_USERS = data.azurerm_key_vault_secret.fn_services_beta_users.value } app_settings_1 = {