From 74ce809ca25241b7a4e533a5a33170abb3092342 Mon Sep 17 00:00:00 2001 From: Garma Date: Wed, 25 Sep 2024 15:55:51 +0200 Subject: [PATCH] update module in functions --- src/domains/functions/function_admin.tf | 6 +++--- src/domains/functions/function_app.tf | 6 +++--- src/domains/functions/function_app_async.tf | 8 ++++---- src/domains/functions/function_assets_cdn.tf | 6 +++--- src/domains/functions/function_public.tf | 4 ++-- src/domains/functions/function_shared.tf | 2 +- src/domains/functions/main.tf | 5 +++-- 7 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/domains/functions/function_admin.tf b/src/domains/functions/function_admin.tf index c692c59ce..0b946c566 100644 --- a/src/domains/functions/function_admin.tf +++ b/src/domains/functions/function_admin.tf @@ -173,7 +173,7 @@ resource "azurerm_resource_group" "admin_rg" { # Subnet to host admin function module "admin_snet" { - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v8.44.0" name = format("%s-admin-snet", local.project) address_prefixes = var.cidr_subnet_fnadmin resource_group_name = local.rg_common_name @@ -196,7 +196,7 @@ module "admin_snet" { } module "function_admin" { - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v8.44.0" resource_group_name = azurerm_resource_group.admin_rg.name name = format("%s-admin-fn", local.project) @@ -260,7 +260,7 @@ module "function_admin" { } module "function_admin_staging_slot" { - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v8.44.0" name = "staging" location = var.location diff --git a/src/domains/functions/function_app.tf b/src/domains/functions/function_app.tf index 881ece9b4..d83d3aa5d 100644 --- a/src/domains/functions/function_app.tf +++ b/src/domains/functions/function_app.tf @@ -154,7 +154,7 @@ resource "azurerm_resource_group" "app_rg" { # Subnet to host app function module "app_snet" { count = var.function_app_count - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v8.44.0" name = format("%s-app-snet-%d", local.project, count.index + 1) address_prefixes = [var.cidr_subnet_app[count.index]] resource_group_name = local.rg_common_name @@ -186,7 +186,7 @@ data "azurerm_subnet" "session_manager_snet" { #tfsec:ignore:azure-storage-queue-services-logging-enabled:exp:2022-05-01 # already ignored, maybe a bug in tfsec module "function_app" { count = var.function_app_count - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v8.44.0" resource_group_name = azurerm_resource_group.app_rg[count.index].name name = format("%s-app-fn-%d", local.project, count.index + 1) @@ -254,7 +254,7 @@ module "function_app" { module "function_app_staging_slot" { count = var.function_app_count - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v8.44.0" name = "staging" location = var.location diff --git a/src/domains/functions/function_app_async.tf b/src/domains/functions/function_app_async.tf index 124977a2c..efd27c73d 100644 --- a/src/domains/functions/function_app_async.tf +++ b/src/domains/functions/function_app_async.tf @@ -21,7 +21,7 @@ resource "azurerm_resource_group" "app_async_rg" { # Subnet to host app function module "app_async_snet" { - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v8.44.0" name = format("%s-app-async-snet", local.project) address_prefixes = var.cidr_subnet_app_async resource_group_name = local.rg_common_name @@ -45,7 +45,7 @@ module "app_async_snet" { #tfsec:ignore:azure-storage-queue-services-logging-enabled:exp:2022-05-01 # already ignored, maybe a bug in tfsec module "function_app_async" { - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v8.44.0" resource_group_name = azurerm_resource_group.app_async_rg.name name = format("%s-app-async-fn", local.project) @@ -102,7 +102,7 @@ module "function_app_async" { } module "function_app_async_staging_slot" { - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v8.44.0" name = "staging" location = var.location @@ -272,7 +272,7 @@ resource "azurerm_monitor_metric_alert" "function_app_async_health_check" { # Cosmos container for subscription cidrs module "db_subscription_profileemails_container" { - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//cosmosdb_sql_container?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//cosmosdb_sql_container?ref=v8.44.0" name = "profile-emails-leases" resource_group_name = format("%s-rg-internal", local.project) account_name = format("%s-cosmos-api", local.project) diff --git a/src/domains/functions/function_assets_cdn.tf b/src/domains/functions/function_assets_cdn.tf index b3e16fc6b..70bb6046f 100644 --- a/src/domains/functions/function_assets_cdn.tf +++ b/src/domains/functions/function_assets_cdn.tf @@ -36,7 +36,7 @@ locals { # Subnet to host fn cdn assets function module "function_assets_cdn_snet" { - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v8.44.0" name = format("%s-assets-cdn-fn-snet", local.project) address_prefixes = var.cidr_subnet_fncdnassets resource_group_name = local.rg_common_name @@ -59,7 +59,7 @@ module "function_assets_cdn_snet" { } module "function_assets_cdn" { - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v8.44.0" resource_group_name = local.rg_assets_cdn_name name = "${local.project}-assets-cdn-fn" @@ -89,7 +89,7 @@ module "function_assets_cdn" { module "function_assets_cdn_staging_slot" { count = var.function_assets_cdn_sku_tier == "PremiumV3" ? 1 : 0 - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v8.44.0" name = "staging" location = var.location diff --git a/src/domains/functions/function_public.tf b/src/domains/functions/function_public.tf index 4a569500b..c16a686d6 100644 --- a/src/domains/functions/function_public.tf +++ b/src/domains/functions/function_public.tf @@ -38,7 +38,7 @@ locals { #tfsec:ignore:azure-storage-queue-services-logging-enabled:exp:2022-05-01 # already ignored, maybe a bug in tfsec module "function_public" { - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app?ref=v8.44.0" resource_group_name = azurerm_resource_group.shared_rg.name name = format("%s-public-fn", local.project) @@ -87,7 +87,7 @@ module "function_public" { } module "function_public_staging_slot" { - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v8.44.0" name = "staging" location = var.location diff --git a/src/domains/functions/function_shared.tf b/src/domains/functions/function_shared.tf index 7cdaf4224..d9dd90830 100644 --- a/src/domains/functions/function_shared.tf +++ b/src/domains/functions/function_shared.tf @@ -22,7 +22,7 @@ resource "azurerm_app_service_plan" "shared_1_plan" { # Subnet to host app function module "shared_1_snet" { - source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v7.61.0" + source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet?ref=v8.44.0" name = format("%s-shared-1-snet", local.project) address_prefixes = var.cidr_subnet_shared_1 resource_group_name = local.rg_common_name diff --git a/src/domains/functions/main.tf b/src/domains/functions/main.tf index b6ef38ece..8e82166f6 100644 --- a/src/domains/functions/main.tf +++ b/src/domains/functions/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "<= 3.100.0" + version = "<= 3.116" } azuread = { source = "hashicorp/azuread" @@ -15,4 +15,5 @@ terraform { provider "azurerm" { features {} -} \ No newline at end of file +} +