From 3df1084822efa9faddb8d6794ef24ab802ef6666 Mon Sep 17 00:00:00 2001 From: Anssi Hakanen Date: Thu, 25 Apr 2024 22:34:17 +0300 Subject: [PATCH] oh lawd --- main.tf | 58 ++++++++++++++++++------------------- modules/FunctionApp/main.tf | 2 +- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/main.tf b/main.tf index 437227b..8c6da9b 100644 --- a/main.tf +++ b/main.tf @@ -18,19 +18,19 @@ module "network" { } */ module "function_app" { - source = "./modules/FunctionApp" - tags = var.tags - rg = var.rg - location = var.location - private_storage_name = module.storage.private_storage_name - private_storage_key = module.storage.private_storage_key - private_storage_account_id = module.storage.private_storage_account_id - public_storage_account_id = module.storage.public_storage_account_id - env = var.env - prefix = var.prefix - instru_key = module.monitoring.instrumentation_key - conn_string = module.monitoring.conn_string - func_subnet_id = module.network.function_subnet_id + source = "./modules/FunctionApp" + tags = var.tags + rg = var.rg + location = var.location + private_storage_name = module.storage.private_storage_name + private_storage_key = module.storage.private_storage_key + private_storage_account_id = module.storage.private_storage_account_id + public_storage_account_id = module.storage.public_storage_account_id + env = var.env + prefix = var.prefix + instru_key = module.monitoring.instrumentation_key + conn_string = module.monitoring.conn_string + func_subnet_id = module.network.function_subnet_id } /* module "eventgrid" { @@ -48,28 +48,28 @@ module "function_app" { } */ module "storage" { - source = "./modules/Storage" - tags = var.tags - rg = var.rg - prefix = var.prefix - location = var.location - env = var.env - fe_subnet_id = module.network.frontend_subnet_id - be_subnet_id = module.network.backend_subnet_id + source = "./modules/Storage" + tags = var.tags + rg = var.rg + prefix = var.prefix + location = var.location + env = var.env + fe_subnet_id = module.network.frontend_subnet_id + be_subnet_id = module.network.backend_subnet_id comp_subnet_id = module.network.compute_subnet_id func_subnet_id = module.network.function_subnet_id #private_dns_zone_blob_id = module.network.private_dns_zone_blob_id } module "container" { - source = "./modules/Container" - tags = var.tags - rg = var.rg - location = var.location - prefix = var.prefix - env = var.env - fe_subnet_id = module.network.frontend_subnet_id - be_subnet_id = module.network.backend_subnet_id + source = "./modules/Container" + tags = var.tags + rg = var.rg + location = var.location + prefix = var.prefix + env = var.env + fe_subnet_id = module.network.frontend_subnet_id + be_subnet_id = module.network.backend_subnet_id comp_subnet_id = module.network.compute_subnet_id } diff --git a/modules/FunctionApp/main.tf b/modules/FunctionApp/main.tf index 055e3ab..96937e6 100644 --- a/modules/FunctionApp/main.tf +++ b/modules/FunctionApp/main.tf @@ -50,7 +50,7 @@ resource "azurerm_eventgrid_system_topic_event_subscription" "event_subscription system_topic = azurerm_eventgrid_system_topic.eventgrid_topic.name resource_group_name = var.rg azure_function_endpoint { - function_id = azurerm_linux_function_app.function_app.name + function_id = azurerm_linux_function_app.function_app.id max_events_per_batch = 1 preferred_batch_size_in_kilobytes = 64 }