Skip to content

Commit

Permalink
[#IOPID-1908] Add configuration for Profile change feed processor (#1130
Browse files Browse the repository at this point in the history
)
  • Loading branch information
BurnedMarshal authored Aug 14, 2024
1 parent 4332c52 commit dccec08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/domains/elt/_modules/function_apps/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 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 @@ -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
Expand Down Expand Up @@ -135,6 +139,7 @@ module "function_elt" {
"AzureWebJobs.AnalyticsServiceChangeFeedInboundProcessorAdapter.Disabled" = "0"
"AzureWebJobs.AnalyticsServiceStorageQueueInboundProcessorAdapter.Disabled" = "0"
"AzureWebJobs.AnalyticsServicePreferencesChangeFeedInboundProcessorAdapter.Disabled" = "1"
"AzureWebJobs.AnalyticsProfilesChangeFeedInboundProcessorAdapter.Disabled" = "1"
}
)

Expand Down

0 comments on commit dccec08

Please sign in to comment.