Skip to content

Commit

Permalink
oh lawd
Browse files Browse the repository at this point in the history
  • Loading branch information
anssihakanen committed Apr 25, 2024
1 parent e6266a5 commit 3df1084
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
58 changes: 29 additions & 29 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand All @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion modules/FunctionApp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3df1084

Please sign in to comment.