Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CES-459] Added new storage account iopstelt for ITN migration #1279

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we delete this file?

Empty file.
16 changes: 16 additions & 0 deletions src/domains/elt/_modules/storage_accounts/locals.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
###Italy North
locals {
prefix = "io"
env_short = "p"
# domain = "elt"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# domain = local.domain

instance_number = local.instance_number
}
}
5 changes: 5 additions & 0 deletions src/domains/elt/_modules/storage_accounts/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ terraform {
}
}
}


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

module "common_values" {
source = "github.com/pagopa/io-infra//src/_modules/common_values?ref=main"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
blob_features = {
blob_features = {

immutability_policy = {
enabled = false
}
versioning = true
change_feed = {
enabled = true
}
}


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

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
}