Skip to content

Commit

Permalink
[#IOCOM-1952] added pagopa ecommerce api variables (#1380)
Browse files Browse the repository at this point in the history
  • Loading branch information
acuiuli authored Jan 16, 2025
1 parent 01b9a9e commit ea13a94
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/domains/functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
8 changes: 8 additions & 0 deletions src/domains/functions/function_services.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down Expand Up @@ -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 <[email protected]>"

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"
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit ea13a94

Please sign in to comment.