Skip to content

Commit

Permalink
[#IOPID-1191] Disabled OnProfileUpdate function (#765)
Browse files Browse the repository at this point in the history
Co-authored-by: Greta Quadrati <75862507+gquadrati@users.noreply.github.com>
  • Loading branch information
silvicir and gquadrati authored Dec 4, 2023
1 parent 323351d commit 3b12f4f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions src/core/function_app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ locals {
}
app_settings_2 = {
}
staging_functions_disabled = [
"OnProfileUpdate"
]
}
}

Expand Down Expand Up @@ -198,6 +201,9 @@ module "function_app" {

app_settings = merge(
local.function_app.app_settings_common,
{
"AzureWebJobs.OnProfileUpdate.Disabled" = "1"
}
)

internal_storage = {
Expand Down Expand Up @@ -248,6 +254,11 @@ module "function_app_staging_slot" {

app_settings = merge(
local.function_app.app_settings_common,
{
# Disabled functions on slot triggered by cosmosDB change feed
for to_disable in local.function_app.staging_functions_disabled :
format("AzureWebJobs.%s.Disabled", to_disable) => "1"
}
)

subnet_id = module.app_snet[count.index].id
Expand Down
4 changes: 2 additions & 2 deletions src/domains/citizen-auth-common/03_storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ resource "azurerm_private_endpoint" "table" {
tags = var.tags
}

resource "azurerm_storage_table" "unique_emails" {
resource "azurerm_storage_table" "profile_emails" {
depends_on = [module.io_citizen_auth_storage, azurerm_private_endpoint.table]
name = "uniqueEmails"
name = "profileEmails"
storage_account_name = module.io_citizen_auth_storage.name
}
2 changes: 1 addition & 1 deletion src/domains/citizen-auth-common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
| [azurerm_storage_container.lollipop_assertions_storage_assertions](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_container) | resource |
| [azurerm_storage_container.lv_audit_logs_storage_logs](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_container) | resource |
| [azurerm_storage_queue.lollipop_assertions_storage_revoke_queue](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_queue) | resource |
| [azurerm_storage_table.unique_emails](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_table) | resource |
| [azurerm_storage_table.profile_emails](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_table) | resource |
| [azuread_group.adgroup_admin](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/data-sources/group) | data source |
| [azuread_group.adgroup_developers](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/data-sources/group) | data source |
| [azuread_group.adgroup_externals](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/data-sources/group) | data source |
Expand Down

0 comments on commit 3b12f4f

Please sign in to comment.