diff --git a/.github/workflows/daily_report_receipt.yml b/.github/workflows/daily_report_receipt.yml index 59e8f173..d7f6945e 100644 --- a/.github/workflows/daily_report_receipt.yml +++ b/.github/workflows/daily_report_receipt.yml @@ -68,6 +68,7 @@ jobs: run: | export RECEIPTS_COSMOS_CONN_STRING='${{ secrets.RECEIPTS_COSMOS_CONN_STRING }}' + export BIZ_COSMOS_CONN_STRING='${{ secrets.BIZ_COSMOS_CONN_STRING }}' cd ./report chmod +x ./run.sh diff --git a/.identity/00_data.tf b/.identity/00_data.tf index 52369b08..0c389def 100644 --- a/.identity/00_data.tf +++ b/.identity/00_data.tf @@ -51,6 +51,10 @@ data "azurerm_cosmosdb_account" "receipts_cosmos" { name = "pagopa-${var.env_short}-${local.location_short}-receipts-ds-cosmos-account" resource_group_name = "pagopa-${var.env_short}-${local.location_short}-receipts-rg" } +data "azurerm_cosmosdb_account" "biz_cosmos" { + name = "pagopa-${var.env_short}-${local.location_short}-bizevents-ds-cosmos-account" + resource_group_name = "pagopa-${var.env_short}-${local.location_short}-bizevents-rg" +} data "azurerm_key_vault_secret" "key_vault_integration_test_webhook_slack" { name = "webhook-slack" diff --git a/.identity/03_github_environment.tf b/.identity/03_github_environment.tf index 4456b497..1affddc1 100644 --- a/.identity/03_github_environment.tf +++ b/.identity/03_github_environment.tf @@ -26,6 +26,7 @@ locals { "SUBSCRIPTION_ID" : data.azurerm_subscription.current.subscription_id, "RECEIPTS_STORAGE_CONN_STRING" : data.azurerm_storage_account.receipts_sa.primary_connection_string, "RECEIPTS_COSMOS_CONN_STRING" : "AccountEndpoint=https://pagopa-${var.env_short}-${local.location_short}-${local.domain}-ds-cosmos-account.documents.azure.com:443/;AccountKey=${data.azurerm_cosmosdb_account.receipts_cosmos.primary_key};", + "BIZ_COSMOS_CONN_STRING" : "AccountEndpoint=https://pagopa-${var.env_short}-${local.location_short}-${local.domain}-ds-cosmos-account.documents.azure.com:443/;AccountKey=${data.azurerm_cosmosdb_account.biz_cosmos.primary_key};", } env_variables = { "CONTAINER_APP_ENVIRONMENT_NAME" : local.container_app_environment.name,