Skip to content

Commit

Permalink
update module in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Garma00 committed Sep 25, 2024
1 parent a2c4f5d commit 74ce809
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/domains/functions/function_admin.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/domains/functions/function_app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/domains/functions/function_app_async.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/domains/functions/function_assets_cdn.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/domains/functions/function_public.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/domains/functions/function_shared.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/domains/functions/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "<= 3.100.0"
version = "<= 3.116"
}
azuread = {
source = "hashicorp/azuread"
Expand All @@ -15,4 +15,5 @@ terraform {

provider "azurerm" {
features {}
}
}

0 comments on commit 74ce809

Please sign in to comment.