From bb9ebd238c2189c01d1e7d738372f1a97768e8a3 Mon Sep 17 00:00:00 2001
From: Diego Lagos <92735530+diegolagospagopa@users.noreply.github.com>
Date: Thu, 19 Jan 2023 13:17:16 +0100
Subject: [PATCH] feat: Internal modules reference upgraded to v4.0.0 (#44)
pre-commit fixs
---
cdn/README.md | 2 +-
cdn/main.tf | 2 +-
function_app/README.md | 6 +++---
function_app/main.tf | 6 +++---
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/cdn/README.md b/cdn/README.md
index 6999910e..008c7b56 100644
--- a/cdn/README.md
+++ b/cdn/README.md
@@ -109,7 +109,7 @@ Storage account
| Name | Source | Version |
|------|--------|---------|
-| [cdn\_storage\_account](#module\_cdn\_storage\_account) | git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account | v3.15.0 |
+| [cdn\_storage\_account](#module\_cdn\_storage\_account) | git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account | v4.0.0 |
## Resources
diff --git a/cdn/main.tf b/cdn/main.tf
index 3ddf9734..506e2933 100644
--- a/cdn/main.tf
+++ b/cdn/main.tf
@@ -3,7 +3,7 @@
**/
module "cdn_storage_account" {
- source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account?ref=v3.15.0"
+ source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account?ref=v4.0.0"
name = replace("${var.prefix}-${var.name}-sa", "-", "")
diff --git a/function_app/README.md b/function_app/README.md
index 0de30824..65808b43 100644
--- a/function_app/README.md
+++ b/function_app/README.md
@@ -131,9 +131,9 @@ See [Generic resorce migration](../docs/MIGRATION_GUIDE_GENERIC_RESOURCES.md)
| Name | Source | Version |
|------|--------|---------|
-| [storage\_account](#module\_storage\_account) | git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account | v3.15.0 |
-| [storage\_account\_durable\_function](#module\_storage\_account\_durable\_function) | git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account | v3.15.0 |
-| [storage\_account\_durable\_function\_management\_policy](#module\_storage\_account\_durable\_function\_management\_policy) | git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_management_policy | v3.15.0 |
+| [storage\_account](#module\_storage\_account) | git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account | v4.0.0 |
+| [storage\_account\_durable\_function](#module\_storage\_account\_durable\_function) | git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account | v4.0.0 |
+| [storage\_account\_durable\_function\_management\_policy](#module\_storage\_account\_durable\_function\_management\_policy) | git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_management_policy | v4.0.0 |
## Resources
diff --git a/function_app/main.tf b/function_app/main.tf
index 6475691d..ae90f4d0 100644
--- a/function_app/main.tf
+++ b/function_app/main.tf
@@ -1,6 +1,6 @@
#tfsec:ignore:azure-storage-default-action-deny
module "storage_account" {
- source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account?ref=v3.15.0"
+ source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account?ref=v4.0.0"
name = coalesce(var.storage_account_name, format("%sst", replace(var.name, "-", "")))
account_kind = var.storage_account_info.account_kind
@@ -18,7 +18,7 @@ module "storage_account" {
module "storage_account_durable_function" {
count = var.internal_storage.enable ? 1 : 0
- source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account?ref=v3.15.0"
+ source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account?ref=v4.0.0"
name = coalesce(var.storage_account_durable_name, format("%ssdt", replace(var.name, "-", "")))
account_kind = var.storage_account_info.account_kind
@@ -60,7 +60,7 @@ resource "azurerm_storage_container" "internal_container" {
module "storage_account_durable_function_management_policy" {
count = length(local.internal_containers) == 0 ? 0 : 1
- source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_management_policy?ref=v3.15.0"
+ source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_management_policy?ref=v4.0.0"
storage_account_id = module.storage_account_durable_function[0].id