Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ override.tf.json
terraform.rc

# Artifacts
*.zip
*.zip
tfplan
5 changes: 3 additions & 2 deletions modules/function-app/function-app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "azurerm_windows_function_app" "function_app" {
"WEBSITE_RUN_FROM_PACKAGE" = "1",
"FUNCTIONS_WORKER_RUNTIME" = "node",
"AzureWebJobsDisableHomepage" = "true",
"WEBSITE_NODE_DEFAULT_VERSION" = "~18",
"WEBSITE_NODE_DEFAULT_VERSION" = "~20",
"EventHubConnection__credential" = "managedidentity",
"EventHubConnection__fullyQualifiedNamespace" = format("%s.servicebus.windows.net", var.event_hub_namespace_name),
"DD_API_KEY" = var.datadog_api_key,
Expand Down Expand Up @@ -129,7 +129,8 @@ locals {
resource "null_resource" "function_app_publish" {
depends_on = [local.publish_code_command, azurerm_role_assignment.role_assignment_storage, azurerm_role_assignment.role_assignment_event_hub]
triggers = {
input_json = filemd5(data.archive_file.functions_zip.output_path)
# input_json = filemd5(data.archive_file.functions_zip.output_path)
publish_has = data.archive_file.functions_zip.output_base64sha256
publish_code_command = local.publish_code_command
allow_public_access_command = local.allow_public_access_command
deny_public_access_command = local.deny_public_access_command
Expand Down
1 change: 0 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ variable "subscription_id" {

variable "location" {
description = "The location/region where the resources will be created."
default = "West Europe"
type = string
}

Expand Down