Skip to content

Commit

Permalink
CES-474-migrate-ioplvlogsimst new code modified
Browse files Browse the repository at this point in the history
  • Loading branch information
ccuffari committed Nov 7, 2024
1 parent 97f70ff commit b29e80e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
27 changes: 13 additions & 14 deletions src/domains/citizen-auth-common/03_storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -282,29 +282,28 @@ resource "azurerm_storage_queue" "profiles_to_sanitize" {
module "azure_storage_account" {
source = "github.com/pagopa/dx//infra/modules/azure_storage_account?ref=main"

environment = local.itn_environment
resource_group_name = azurerm_resource_group.data_rg_itn.name
access_tier = "Hot"

environment = local.itn_environment
resource_group_name = azurerm_resource_group.data_rg_itn.name
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 = false

###TO CHECK
customer_managed_key = {
enabled = true
type = "kv"
user_assigned_identity_id = azurerm_user_assigned_identity.example.id
key_vault_key_id = "your-key-vault-key-id"
}
# customer_managed_key = {
# enabled = true
# type = "kv"
# user_assigned_identity_id = azurerm_user_assigned_identity.example.id
# key_vault_key_id = "your-key-vault-key-id"
# }

tags = var.tags
}
6 changes: 3 additions & 3 deletions src/domains/citizen-auth-common/06_data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ data "azurerm_linux_function_app" "lollipop_function" {


data "azurerm_virtual_network" "vnet_itn" {
name = "${local.project}-itn-common-vnet-01"
resource_group_name = "${local.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
12 changes: 7 additions & 5 deletions src/domains/citizen-auth-common/99_locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,18 @@ locals {

apim_itn_name = "${local.product}-${local.itn_location_short}-apim-01"
apim_itn_resource_group_name = "${local.product}-${local.itn_location_short}-common-rg-01"
prefix = "io"
env_short = "p"
domain = "citizenauthcommon"
instance_number = "01"
prefix = "io"
env_short = "p"
domain = "citizenauthcommon"
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
}
}
}

0 comments on commit b29e80e

Please sign in to comment.