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..e69de29bb 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..cd2467f8a --- /dev/null +++ b/src/domains/elt/_modules/storage_accounts/locals.tf @@ -0,0 +1,16 @@ +###Italy North +locals { + 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 + instance_number = local.instance_number + } +} \ 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 771d79a96..161c53ec4 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,76 @@ resource "azurerm_storage_table" "fneltexports_itn_02" { name = "fneltexports" storage_account_name = module.storage_account_itn_elt_02.name } + +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 = module.common_values.pep_subnets.itn.id + private_dns_zone_resource_group_name = module.common_values.resource_groups.weu.common + + subservices_enabled = { + blob = true + file = false + queue = false + table = true + } + blob_features = { + immutability_policy = { + enabled = false + } + versioning = true + change_feed = { + enabled = true + } + } + + + force_public_network_access_enabled = true + + tags = var.tags +} + +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_report_step1_itn_new" { + name = "messages-report-step1" + storage_account_name = module.storage_account_elt_itn.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_messages_itn_new" { + name = "fnelterrorsMessages" + storage_account_name = module.storage_account_elt_itn.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_notification_status_itn_new" { + name = "fnelterrorsNotificationStatus" + storage_account_name = module.storage_account_elt_itn.name +} + +resource "azurerm_storage_table" "fneltcommands_itn_new" { + name = "fneltcommands" + storage_account_name = module.storage_account_elt_itn.name +} + +resource "azurerm_storage_table" "fneltexports_itn_new" { + name = "fneltexports" + storage_account_name = module.storage_account_elt_itn.name +} \ No newline at end of file