Skip to content

Commit 45b0486

Browse files
Fix: fixes for newer azurerm provider
1 parent 65609ff commit 45b0486

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

infrastructure/modules/function-app/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ resource "azurerm_linux_function_app" "function_app" {
3131
container_registry_use_managed_identity = var.cont_registry_use_mi
3232
container_registry_managed_identity_client_id = var.acr_mi_client_id
3333
ftps_state = var.ftps_state
34-
health_check_path = var.health_check_path
35-
health_check_eviction_time_in_min = var.health_check_eviction_time_in_min
3634
minimum_tls_version = var.minimum_tls_version
35+
health_check_path = var.health_check_path
36+
health_check_eviction_time_in_min = var.health_check_path == null ? null : (
37+
var.health_check_eviction_time_in_min == null ? 10 : var.health_check_eviction_time_in_min
38+
)
3739

3840
app_service_logs {
3941
disk_quota_mb = var.app_service_logs_disk_quota_mb

infrastructure/modules/linux-web-app/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ resource "azurerm_linux_web_app" "linux_web_app" {
2424
container_registry_use_managed_identity = var.cont_registry_use_mi
2525
container_registry_managed_identity_client_id = var.acr_mi_client_id
2626
ftps_state = var.ftps_state
27-
health_check_path = var.health_check_path
28-
health_check_eviction_time_in_min = var.health_check_eviction_time_in_min
2927
minimum_tls_version = var.minimum_tls_version
28+
health_check_path = var.health_check_path
29+
health_check_eviction_time_in_min = var.health_check_path == null ? null : (
30+
var.health_check_eviction_time_in_min == null ? 10 : var.health_check_eviction_time_in_min
31+
)
3032

3133
application_stack {
3234
docker_registry_url = "https://${var.acr_login_server}"

0 commit comments

Comments
 (0)