diff --git a/src/domains/elt/_modules/function_apps/data.tf b/src/domains/elt/_modules/function_apps/data.tf index 66518b2b6..a2063c665 100644 --- a/src/domains/elt/_modules/function_apps/data.tf +++ b/src/domains/elt/_modules/function_apps/data.tf @@ -82,6 +82,13 @@ data "azurerm_eventhub_authorization_rule" "evh_ns_pdnd_io_cosmos_service_prefer resource_group_name = "${var.project}-evt-rg" } +data "azurerm_eventhub_authorization_rule" "evh_ns_pdnd_io_cosmos_profiles_fn" { + name = "io-fn-elt" + namespace_name = "${var.project}-evh-ns" + eventhub_name = "pdnd-io-cosmosdb-profiles" + resource_group_name = "${var.project}-evt-rg" +} + data "azurerm_eventhub_authorization_rule" "evh_ns_import_command_fn" { name = "io-fn-elt" namespace_name = "${var.project}-evh-ns" diff --git a/src/domains/elt/_modules/function_apps/function_app_elt.tf b/src/domains/elt/_modules/function_apps/function_app_elt.tf index 68b76f8ad..3941c6dd3 100644 --- a/src/domains/elt/_modules/function_apps/function_app_elt.tf +++ b/src/domains/elt/_modules/function_apps/function_app_elt.tf @@ -49,6 +49,10 @@ locals { SERVICE_PREFERENCES_TOPIC_CONNECTION_STRING = data.azurerm_eventhub_authorization_rule.evh_ns_pdnd_io_cosmos_service_preferences_fn.primary_connection_string SERVICE_PREFERENCES_LEASES_PREFIX = "service-preferences-001" + PROFILES_TOPIC_NAME = "pdnd-io-cosmosdb-profiles" + PROFILES_TOPIC_CONNECTION_STRING = data.azurerm_eventhub_authorization_rule.evh_ns_pdnd_io_cosmos_profiles_fn.primary_connection_string + PROFILES_LEASES_PREFIX = "profiles-001" + ERROR_STORAGE_ACCOUNT = var.storage_account_name ERROR_STORAGE_KEY = var.storage_account_primary_access_key ERROR_STORAGE_TABLE = var.storage_account_tables.fnelterrors @@ -135,6 +139,7 @@ module "function_elt" { "AzureWebJobs.AnalyticsServiceChangeFeedInboundProcessorAdapter.Disabled" = "0" "AzureWebJobs.AnalyticsServiceStorageQueueInboundProcessorAdapter.Disabled" = "0" "AzureWebJobs.AnalyticsServicePreferencesChangeFeedInboundProcessorAdapter.Disabled" = "1" + "AzureWebJobs.AnalyticsProfilesChangeFeedInboundProcessorAdapter.Disabled" = "1" } )