Skip to content

Commit

Permalink
CES-459-migrate-iopstelt new code modified
Browse files Browse the repository at this point in the history
  • Loading branch information
ccuffari committed Nov 7, 2024
1 parent 15bd639 commit 9683416
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/domains/elt/_modules/storage_accounts/data.tf
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 6 additions & 4 deletions src/domains/elt/_modules/storage_accounts/locals.tf
Original file line number Diff line number Diff line change
@@ -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
}
}
}
13 changes: 6 additions & 7 deletions src/domains/elt/_modules/storage_accounts/storage_account_elt.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9683416

Please sign in to comment.