Skip to content

Commit

Permalink
[#IOPID-1910] add PDV tokenizer env variables (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcogabbo authored Sep 10, 2024
1 parent bdff367 commit 87a31bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/domains/elt/_modules/function_apps/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ data "azurerm_key_vault_secret" "services_exclusion_list" {
key_vault_id = data.azurerm_key_vault.kv_common.id
}

data "azurerm_key_vault_secret" "pdv_tokenizer_api_key" {
name = "func-elt-PDV-TOKENIZER-API-KEY"
key_vault_id = data.azurerm_key_vault.kv_common.id
}

data "azurerm_storage_account" "storage_api" {
name = replace("${var.project}stapi", "-", "")
resource_group_name = local.resource_group_name_internal
Expand Down
6 changes: 6 additions & 0 deletions src/domains/elt/_modules/function_apps/function_app_elt.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ locals {
SERVICE_PREFERENCES_FAILURE_QUEUE_NAME = local.service_preferences_failure_queue_name
PROFILES_FAILURE_QUEUE_NAME = local.profiles_failure_queue_name

# PDV integration env variables
PDV_TOKENIZER_API_KEY = data.azurerm_key_vault_secret.pdv_tokenizer_api_key.value,
PDV_TOKENIZER_BASE_URL = "https://api.tokenizer.pdv.pagopa.it",
PDV_TOKENIZER_BASE_PATH = "/tokenizer/v1",
#

INTERNAL_TEST_FISCAL_CODES = module.tests.test_users.all
}
}
Expand Down

0 comments on commit 87a31bf

Please sign in to comment.