From dd563bc97e2e34129e402d7ceb0602b518f397d9 Mon Sep 17 00:00:00 2001 From: ccuffari <75679158+ccuffari@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:32:40 +0100 Subject: [PATCH 1/9] CES-459-migrate-iopstelt new module code --- .../storage_accounts/storage_account_elt.tf | 19 +++++++++++++++++++ .../_modules/storage_accounts/variables.tf | 12 ++++++++++++ 2 files changed, 31 insertions(+) diff --git a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf index 771d79a96..3f206d24c 100644 --- a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf +++ b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf @@ -147,3 +147,22 @@ resource "azurerm_storage_table" "fneltexports_itn_02" { name = "fneltexports" storage_account_name = module.storage_account_itn_elt_02.name } + +module "azure_storage_account" { + source = "github.com/pagopa/dx//infra/modules/azure_storage_account?ref=main" + + environment = var.environment + resource_group_name = var.resource_group_name + access_tier = "Hot" + + subservices_enabled = { + blob = true + file = false + queue = false + table = true + } + + force_public_network_access_enabled = true + + tags = var.tags +} \ No newline at end of file diff --git a/src/domains/elt/_modules/storage_accounts/variables.tf b/src/domains/elt/_modules/storage_accounts/variables.tf index 3499e3442..07a14e72f 100644 --- a/src/domains/elt/_modules/storage_accounts/variables.tf +++ b/src/domains/elt/_modules/storage_accounts/variables.tf @@ -31,3 +31,15 @@ variable "resource_group_name_itn" { variable "project_itn" { type = string } + +variable "environment" { + type = object({ + prefix = string + env_short = string + location = string + domain = optional(string) + instance_number = string + }) + + description = "Values which are used to generate resource names and location short names. They are all mandatory except for domain, which should not be used only in the case of a resource used by multiple domains." +} \ No newline at end of file From 3708672c633713f75bbe7ab6af0191eff937b397 Mon Sep 17 00:00:00 2001 From: ccuffari <75679158+ccuffari@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:10:54 +0100 Subject: [PATCH 2/9] CES-459-migrate-iopstelt modify new code --- .../elt/_modules/storage_accounts/locals.tf | 14 ++++++++++++++ .../storage_accounts/storage_account_elt.tf | 4 ++-- .../elt/_modules/storage_accounts/variables.tf | 12 ------------ 3 files changed, 16 insertions(+), 14 deletions(-) create mode 100644 src/domains/elt/_modules/storage_accounts/locals.tf diff --git a/src/domains/elt/_modules/storage_accounts/locals.tf b/src/domains/elt/_modules/storage_accounts/locals.tf new file mode 100644 index 000000000..ed2c4054a --- /dev/null +++ b/src/domains/elt/_modules/storage_accounts/locals.tf @@ -0,0 +1,14 @@ +###Italy North +locals { + prefix = "io" + env_short = "p" + domain = "redis" + instance_number = "01" + itn_environment = { + prefix = local.prefix + env_short = local.env_short + location = var.location + domain = local.domain + instance_number = local.instance_number + } +} \ No newline at end of file diff --git a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf index 3f206d24c..e34d7e18c 100644 --- a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf +++ b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf @@ -151,8 +151,8 @@ resource "azurerm_storage_table" "fneltexports_itn_02" { module "azure_storage_account" { source = "github.com/pagopa/dx//infra/modules/azure_storage_account?ref=main" - environment = var.environment - resource_group_name = var.resource_group_name + environment = local.itn_environment + resource_group_name = var.resource_group_name_itn access_tier = "Hot" subservices_enabled = { diff --git a/src/domains/elt/_modules/storage_accounts/variables.tf b/src/domains/elt/_modules/storage_accounts/variables.tf index 07a14e72f..3499e3442 100644 --- a/src/domains/elt/_modules/storage_accounts/variables.tf +++ b/src/domains/elt/_modules/storage_accounts/variables.tf @@ -31,15 +31,3 @@ variable "resource_group_name_itn" { variable "project_itn" { type = string } - -variable "environment" { - type = object({ - prefix = string - env_short = string - location = string - domain = optional(string) - instance_number = string - }) - - description = "Values which are used to generate resource names and location short names. They are all mandatory except for domain, which should not be used only in the case of a resource used by multiple domains." -} \ No newline at end of file From 15bd63994b86f31c8ea40835d04627e6a7e9f700 Mon Sep 17 00:00:00 2001 From: ccuffari <75679158+ccuffari@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:01:20 +0100 Subject: [PATCH 3/9] CES-459-migrate-iopstelt private endpoint added --- src/domains/elt/_modules/storage_accounts/data.tf | 10 ++++++++++ src/domains/elt/_modules/storage_accounts/locals.tf | 2 +- .../_modules/storage_accounts/storage_account_elt.tf | 3 +++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/domains/elt/_modules/storage_accounts/data.tf diff --git a/src/domains/elt/_modules/storage_accounts/data.tf b/src/domains/elt/_modules/storage_accounts/data.tf new file mode 100644 index 000000000..e6c484cc0 --- /dev/null +++ b/src/domains/elt/_modules/storage_accounts/data.tf @@ -0,0 +1,10 @@ +data "azurerm_virtual_network" "vnet_itn" { + name = "${var.project}-itn-common-vnet-01" + resource_group_name = "${var.project}-itn-common-rg-01" +} + +data "azurerm_subnet" "subnet_private_endpoints_itn" { + name = "io-p-itn-pep-snet-01 " + resource_group_name = data.azurerm_virtual_network.vnet_itn.resource_group_name + virtual_network_name = data.azurerm_virtual_network.vnet_itn.name +} \ No newline at end of file diff --git a/src/domains/elt/_modules/storage_accounts/locals.tf b/src/domains/elt/_modules/storage_accounts/locals.tf index ed2c4054a..bfd324646 100644 --- a/src/domains/elt/_modules/storage_accounts/locals.tf +++ b/src/domains/elt/_modules/storage_accounts/locals.tf @@ -2,7 +2,7 @@ locals { prefix = "io" env_short = "p" - domain = "redis" + domain = "elt" instance_number = "01" itn_environment = { prefix = local.prefix diff --git a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf index e34d7e18c..0f7e3dbb1 100644 --- a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf +++ b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf @@ -155,6 +155,9 @@ module "azure_storage_account" { resource_group_name = var.resource_group_name_itn access_tier = "Hot" + subnet_pep_id = data.azurerm_subnet.subnet_pep_itn.id + private_dns_zone_resource_group_name = "${local.prefix}-${local.env_short}-itn-common-rg-01" + subservices_enabled = { blob = true file = false From 9683416d34ac0c73b439a869c3f28af19337b5b2 Mon Sep 17 00:00:00 2001 From: ccuffari <75679158+ccuffari@users.noreply.github.com> Date: Thu, 7 Nov 2024 14:28:23 +0100 Subject: [PATCH 4/9] CES-459-migrate-iopstelt new code modified --- src/domains/elt/_modules/storage_accounts/data.tf | 6 +++--- src/domains/elt/_modules/storage_accounts/locals.tf | 10 ++++++---- .../storage_accounts/storage_account_elt.tf | 13 ++++++------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/domains/elt/_modules/storage_accounts/data.tf b/src/domains/elt/_modules/storage_accounts/data.tf index e6c484cc0..ddc2051c6 100644 --- a/src/domains/elt/_modules/storage_accounts/data.tf +++ b/src/domains/elt/_modules/storage_accounts/data.tf @@ -1,9 +1,9 @@ data "azurerm_virtual_network" "vnet_itn" { - name = "${var.project}-itn-common-vnet-01" - resource_group_name = "${var.project}-itn-common-rg-01" + name = "${local.prefix}-${local.env_short}-itn-common-vnet-01" + resource_group_name = "${local.prefix}-${local.env_short}-itn-common-rg-01" } -data "azurerm_subnet" "subnet_private_endpoints_itn" { +data "azurerm_subnet" "subnet_pep_itn" { name = "io-p-itn-pep-snet-01 " resource_group_name = data.azurerm_virtual_network.vnet_itn.resource_group_name virtual_network_name = data.azurerm_virtual_network.vnet_itn.name diff --git a/src/domains/elt/_modules/storage_accounts/locals.tf b/src/domains/elt/_modules/storage_accounts/locals.tf index bfd324646..0fea13712 100644 --- a/src/domains/elt/_modules/storage_accounts/locals.tf +++ b/src/domains/elt/_modules/storage_accounts/locals.tf @@ -1,14 +1,16 @@ ###Italy North locals { - prefix = "io" - env_short = "p" - domain = "elt" + prefix = "io" + env_short = "p" + domain = "elt" + app_name = "ex" instance_number = "01" itn_environment = { prefix = local.prefix env_short = local.env_short location = var.location + app_name = local.app_name domain = local.domain instance_number = local.instance_number - } + } } \ No newline at end of file diff --git a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf index 0f7e3dbb1..2058b0b84 100644 --- a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf +++ b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf @@ -151,18 +151,17 @@ resource "azurerm_storage_table" "fneltexports_itn_02" { module "azure_storage_account" { source = "github.com/pagopa/dx//infra/modules/azure_storage_account?ref=main" - environment = local.itn_environment - resource_group_name = var.resource_group_name_itn - access_tier = "Hot" - + environment = local.itn_environment + resource_group_name = var.resource_group_name_itn + tier = "l" subnet_pep_id = data.azurerm_subnet.subnet_pep_itn.id - private_dns_zone_resource_group_name = "${local.prefix}-${local.env_short}-itn-common-rg-01" + private_dns_zone_resource_group_name = "${local.prefix}-${local.env_short}-rg-common" subservices_enabled = { blob = true file = false - queue = false - table = true + queue = false + table = true } force_public_network_access_enabled = true From c36938e976fdbd74c6e93cccfc55152dda4b958f Mon Sep 17 00:00:00 2001 From: ccuffari <75679158+ccuffari@users.noreply.github.com> Date: Fri, 8 Nov 2024 15:05:02 +0100 Subject: [PATCH 5/9] CES-459-migrate-iopstelt blob feature added and domain/appname checked --- .../elt/_modules/storage_accounts/locals.tf | 18 +++++++++--------- .../storage_accounts/storage_account_elt.tf | 10 ++++++++++ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/domains/elt/_modules/storage_accounts/locals.tf b/src/domains/elt/_modules/storage_accounts/locals.tf index 0fea13712..cd2467f8a 100644 --- a/src/domains/elt/_modules/storage_accounts/locals.tf +++ b/src/domains/elt/_modules/storage_accounts/locals.tf @@ -1,16 +1,16 @@ ###Italy North locals { - prefix = "io" - env_short = "p" - domain = "elt" - app_name = "ex" + prefix = "io" + env_short = "p" + # domain = "elt" + app_name = "elt" instance_number = "01" itn_environment = { - prefix = local.prefix - env_short = local.env_short - location = var.location - app_name = local.app_name - domain = local.domain + prefix = local.prefix + env_short = local.env_short + location = var.location + app_name = local.app_name + # domain = local.domain instance_number = local.instance_number } } \ No newline at end of file diff --git a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf index 2058b0b84..f9736d827 100644 --- a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf +++ b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf @@ -163,6 +163,16 @@ module "azure_storage_account" { queue = false table = true } + blob_features = { + immutability_policy = { + enabled = false + } + versioning = true + change_feed = { + enabled = true + } + } + force_public_network_access_enabled = true From 7b0a3e917c99f3a901e7a00c7fa21aa9ce175ebc Mon Sep 17 00:00:00 2001 From: ccuffari <75679158+ccuffari@users.noreply.github.com> Date: Mon, 11 Nov 2024 15:16:36 +0100 Subject: [PATCH 6/9] [CES-459] Added new storage account iopstelt for ITN migration refactoring with latests suggestions --- src/domains/elt/_modules/storage_accounts/data.tf | 10 ---------- src/domains/elt/_modules/storage_accounts/main.tf | 5 +++++ .../_modules/storage_accounts/storage_account_elt.tf | 6 +++--- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/src/domains/elt/_modules/storage_accounts/data.tf b/src/domains/elt/_modules/storage_accounts/data.tf index ddc2051c6..e69de29bb 100644 --- a/src/domains/elt/_modules/storage_accounts/data.tf +++ b/src/domains/elt/_modules/storage_accounts/data.tf @@ -1,10 +0,0 @@ -data "azurerm_virtual_network" "vnet_itn" { - name = "${local.prefix}-${local.env_short}-itn-common-vnet-01" - resource_group_name = "${local.prefix}-${local.env_short}-itn-common-rg-01" -} - -data "azurerm_subnet" "subnet_pep_itn" { - name = "io-p-itn-pep-snet-01 " - resource_group_name = data.azurerm_virtual_network.vnet_itn.resource_group_name - virtual_network_name = data.azurerm_virtual_network.vnet_itn.name -} \ No newline at end of file diff --git a/src/domains/elt/_modules/storage_accounts/main.tf b/src/domains/elt/_modules/storage_accounts/main.tf index fe3796d05..b9e36d7e6 100644 --- a/src/domains/elt/_modules/storage_accounts/main.tf +++ b/src/domains/elt/_modules/storage_accounts/main.tf @@ -6,3 +6,8 @@ terraform { } } } + + +module "common_values" { + source = "github.com/pagopa/io-infra//src/_modules/common_values?ref=main" +} \ No newline at end of file diff --git a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf index f9736d827..1dcc11e3f 100644 --- a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf +++ b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf @@ -148,14 +148,14 @@ resource "azurerm_storage_table" "fneltexports_itn_02" { storage_account_name = module.storage_account_itn_elt_02.name } -module "azure_storage_account" { +module "storage_account_elt_itn" { source = "github.com/pagopa/dx//infra/modules/azure_storage_account?ref=main" environment = local.itn_environment resource_group_name = var.resource_group_name_itn tier = "l" - subnet_pep_id = data.azurerm_subnet.subnet_pep_itn.id - private_dns_zone_resource_group_name = "${local.prefix}-${local.env_short}-rg-common" + subnet_pep_id = module.common_values.pep_subnets.itn.id + private_dns_zone_resource_group_name = module.common_values.resource_groups.weu.common subservices_enabled = { blob = true From 154ba20c6c7b2bc51b824ad39f86f6cf5013eb52 Mon Sep 17 00:00:00 2001 From: ccuffari <75679158+ccuffari@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:42:22 +0100 Subject: [PATCH 7/9] [CES-459] Added new storage account iopstelt for ITN migration --- .../storage_accounts/storage_account_elt.tf | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf index 1dcc11e3f..4c7e56318 100644 --- a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf +++ b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf @@ -177,4 +177,88 @@ module "storage_account_elt_itn" { force_public_network_access_enabled = true tags = var.tags +} + +resource "azurerm_storage_container" "messages_step_final_itn" { + name = "messages-report-step-final" + storage_account_name = module.storage_account_elt_itn.name + container_access_type = "private" +} + +resource "azurerm_storage_container" "messages_step_final_itn_02" { + name = "messages-report-step-final" + storage_account_name = module.storage_account_elt_itn_02.name + container_access_type = "private" +} + +resource "azurerm_storage_container" "messages_report_step1_itn" { + name = "messages-report-step1" + storage_account_name = module.storage_account_elt_itn.name + container_access_type = "private" +} + +resource "azurerm_storage_container" "messages_report_step1_itn_02" { + name = "messages-report-step1" + storage_account_name = module.storage_account_elt_itn_02.name + container_access_type = "private" +} + +resource "azurerm_storage_table" "fnelterrors_itn" { + name = "fnelterrors" + storage_account_name = module.storage_account_elt_itn.name +} + +resource "azurerm_storage_table" "fnelterrors_itn_02" { + name = "fnelterrors" + storage_account_name = module.storage_account_elt_itn_02.name +} + +resource "azurerm_storage_table" "fnelterrors_messages_itn" { + name = "fnelterrorsMessages" + storage_account_name = module.storage_account_elt_itn.name +} + +resource "azurerm_storage_table" "fnelterrors_messages_itn_02" { + name = "fnelterrorsMessages" + storage_account_name = module.storage_account_elt_itn_02.name +} + +resource "azurerm_storage_table" "fnelterrors_message_status_itn" { + name = "fnelterrorsMessageStatus" + storage_account_name = module.storage_account_elt_itn.name +} + +resource "azurerm_storage_table" "fnelterrors_message_status_itn_02" { + name = "fnelterrorsMessageStatus" + storage_account_name = module.storage_account_elt_itn_02.name +} + +resource "azurerm_storage_table" "fnelterrors_notification_status_itn" { + name = "fnelterrorsNotificationStatus" + storage_account_name = module.storage_account_elt_itn.name +} + +resource "azurerm_storage_table" "fnelterrors_notification_status_itn_02" { + name = "fnelterrorsNotificationStatus" + storage_account_name = module.storage_account_elt_itn_02.name +} + +resource "azurerm_storage_table" "fneltcommands_itn" { + name = "fneltcommands" + storage_account_name = module.storage_account_elt_itn.name +} + +resource "azurerm_storage_table" "fneltcommands_itn_02" { + name = "fneltcommands" + storage_account_name = module.storage_account_elt_itn_02.name +} + +resource "azurerm_storage_table" "fneltexports_itn" { + name = "fneltexports" + storage_account_name = module.storage_account_elt_itn.name +} + +resource "azurerm_storage_table" "fneltexports_itn_02" { + name = "fneltexports" + storage_account_name = module.storage_account_elt_itn_02.name } \ No newline at end of file From 4b3c87566746b59ec4cc7694860d13fae54b9a9f Mon Sep 17 00:00:00 2001 From: ccuffari <75679158+ccuffari@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:25:09 +0100 Subject: [PATCH 8/9] [CES-459] Added new storage account iopstelt for ITN migration --- .../storage_accounts/storage_account_elt.tf | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf index 4c7e56318..d309dd2ac 100644 --- a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf +++ b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf @@ -179,86 +179,86 @@ module "storage_account_elt_itn" { tags = var.tags } -resource "azurerm_storage_container" "messages_step_final_itn" { +resource "azurerm_storage_container" "messages_step_final_itn_new" { name = "messages-report-step-final" storage_account_name = module.storage_account_elt_itn.name container_access_type = "private" } -resource "azurerm_storage_container" "messages_step_final_itn_02" { +resource "azurerm_storage_container" "messages_step_final_itn_02_new" { name = "messages-report-step-final" storage_account_name = module.storage_account_elt_itn_02.name container_access_type = "private" } -resource "azurerm_storage_container" "messages_report_step1_itn" { +resource "azurerm_storage_container" "messages_report_step1_itn_new" { name = "messages-report-step1" storage_account_name = module.storage_account_elt_itn.name container_access_type = "private" } -resource "azurerm_storage_container" "messages_report_step1_itn_02" { +resource "azurerm_storage_container" "messages_report_step1_itn_02_new" { name = "messages-report-step1" storage_account_name = module.storage_account_elt_itn_02.name container_access_type = "private" } -resource "azurerm_storage_table" "fnelterrors_itn" { +resource "azurerm_storage_table" "fnelterrors_itn_new" { name = "fnelterrors" storage_account_name = module.storage_account_elt_itn.name } -resource "azurerm_storage_table" "fnelterrors_itn_02" { +resource "azurerm_storage_table" "fnelterrors_itn_02_new" { name = "fnelterrors" storage_account_name = module.storage_account_elt_itn_02.name } -resource "azurerm_storage_table" "fnelterrors_messages_itn" { +resource "azurerm_storage_table" "fnelterrors_messages_itn_new" { name = "fnelterrorsMessages" storage_account_name = module.storage_account_elt_itn.name } -resource "azurerm_storage_table" "fnelterrors_messages_itn_02" { +resource "azurerm_storage_table" "fnelterrors_messages_itn_02_new" { name = "fnelterrorsMessages" storage_account_name = module.storage_account_elt_itn_02.name } -resource "azurerm_storage_table" "fnelterrors_message_status_itn" { +resource "azurerm_storage_table" "fnelterrors_message_status_itn_new" { name = "fnelterrorsMessageStatus" storage_account_name = module.storage_account_elt_itn.name } -resource "azurerm_storage_table" "fnelterrors_message_status_itn_02" { +resource "azurerm_storage_table" "fnelterrors_message_status_itn_02_new" { name = "fnelterrorsMessageStatus" storage_account_name = module.storage_account_elt_itn_02.name } -resource "azurerm_storage_table" "fnelterrors_notification_status_itn" { +resource "azurerm_storage_table" "fnelterrors_notification_status_itn_new" { name = "fnelterrorsNotificationStatus" storage_account_name = module.storage_account_elt_itn.name } -resource "azurerm_storage_table" "fnelterrors_notification_status_itn_02" { +resource "azurerm_storage_table" "fnelterrors_notification_status_itn_02_new" { name = "fnelterrorsNotificationStatus" storage_account_name = module.storage_account_elt_itn_02.name } -resource "azurerm_storage_table" "fneltcommands_itn" { +resource "azurerm_storage_table" "fneltcommands_itn_new" { name = "fneltcommands" storage_account_name = module.storage_account_elt_itn.name } -resource "azurerm_storage_table" "fneltcommands_itn_02" { +resource "azurerm_storage_table" "fneltcommands_itn_02_new" { name = "fneltcommands" storage_account_name = module.storage_account_elt_itn_02.name } -resource "azurerm_storage_table" "fneltexports_itn" { +resource "azurerm_storage_table" "fneltexports_itn_new" { name = "fneltexports" storage_account_name = module.storage_account_elt_itn.name } -resource "azurerm_storage_table" "fneltexports_itn_02" { +resource "azurerm_storage_table" "fneltexports_itn_02_new" { name = "fneltexports" storage_account_name = module.storage_account_elt_itn_02.name } \ No newline at end of file From 65dda40ce8cdecf2bb66f7e4902daa20c5b33429 Mon Sep 17 00:00:00 2001 From: ccuffari <75679158+ccuffari@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:25:50 +0100 Subject: [PATCH 9/9] [CES-459] Added new storage account iopstelt for ITN migration --- .../storage_accounts/storage_account_elt.tf | 42 ------------------- 1 file changed, 42 deletions(-) diff --git a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf index d309dd2ac..161c53ec4 100644 --- a/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf +++ b/src/domains/elt/_modules/storage_accounts/storage_account_elt.tf @@ -185,80 +185,38 @@ resource "azurerm_storage_container" "messages_step_final_itn_new" { container_access_type = "private" } -resource "azurerm_storage_container" "messages_step_final_itn_02_new" { - name = "messages-report-step-final" - storage_account_name = module.storage_account_elt_itn_02.name - container_access_type = "private" -} - resource "azurerm_storage_container" "messages_report_step1_itn_new" { name = "messages-report-step1" storage_account_name = module.storage_account_elt_itn.name container_access_type = "private" } -resource "azurerm_storage_container" "messages_report_step1_itn_02_new" { - name = "messages-report-step1" - storage_account_name = module.storage_account_elt_itn_02.name - container_access_type = "private" -} - resource "azurerm_storage_table" "fnelterrors_itn_new" { name = "fnelterrors" storage_account_name = module.storage_account_elt_itn.name } -resource "azurerm_storage_table" "fnelterrors_itn_02_new" { - name = "fnelterrors" - storage_account_name = module.storage_account_elt_itn_02.name -} - resource "azurerm_storage_table" "fnelterrors_messages_itn_new" { name = "fnelterrorsMessages" storage_account_name = module.storage_account_elt_itn.name } -resource "azurerm_storage_table" "fnelterrors_messages_itn_02_new" { - name = "fnelterrorsMessages" - storage_account_name = module.storage_account_elt_itn_02.name -} - resource "azurerm_storage_table" "fnelterrors_message_status_itn_new" { name = "fnelterrorsMessageStatus" storage_account_name = module.storage_account_elt_itn.name } -resource "azurerm_storage_table" "fnelterrors_message_status_itn_02_new" { - name = "fnelterrorsMessageStatus" - storage_account_name = module.storage_account_elt_itn_02.name -} - resource "azurerm_storage_table" "fnelterrors_notification_status_itn_new" { name = "fnelterrorsNotificationStatus" storage_account_name = module.storage_account_elt_itn.name } -resource "azurerm_storage_table" "fnelterrors_notification_status_itn_02_new" { - name = "fnelterrorsNotificationStatus" - storage_account_name = module.storage_account_elt_itn_02.name -} - resource "azurerm_storage_table" "fneltcommands_itn_new" { name = "fneltcommands" storage_account_name = module.storage_account_elt_itn.name } -resource "azurerm_storage_table" "fneltcommands_itn_02_new" { - name = "fneltcommands" - storage_account_name = module.storage_account_elt_itn_02.name -} - resource "azurerm_storage_table" "fneltexports_itn_new" { name = "fneltexports" storage_account_name = module.storage_account_elt_itn.name -} - -resource "azurerm_storage_table" "fneltexports_itn_02_new" { - name = "fneltexports" - storage_account_name = module.storage_account_elt_itn_02.name } \ No newline at end of file