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-460] Added new storage account iopsteucovidcert for ITN migration #1280

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
10 changes: 10 additions & 0 deletions src/domains/eucovidcert/_modules/storage_accounts/data.tf
Copy link
Contributor

Choose a reason for hiding this comment

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

Please do not use data inside a child module, but in the main one and then use variables to pass values along

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
data "azurerm_monitor_action_group" "status_action_group" {
name = "SLACK IO_STATUS"
resource_group_name = "${local.prefix}-${local.env_short}-rg-common"
}


data "azurerm_monitor_action_group" "operations_action_group" {
name = "IO OPERATIONS"
resource_group_name = "${local.prefix}-${local.env_short}-rg-operations"
}
16 changes: 16 additions & 0 deletions src/domains/eucovidcert/_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 = "eucovidcert"
app_name = "eucovidcert"
instance_number = "01"
itn_environment = {
prefix = local.prefix
env_short = local.env_short
location = var.location
# domain = local.domain
app_name = local.app_name
instance_number = local.instance_number
}
}
4 changes: 4 additions & 0 deletions src/domains/eucovidcert/_modules/storage_accounts/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ terraform {
}
}
}

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 @@ -15,3 +15,25 @@ module "storage_account_eucovidcert" {

tags = var.tags
}

module "storage_account_eucovidcert_itn" {
source = "github.com/pagopa/dx//infra/modules/azure_storage_account?ref=main"

environment = local.itn_environment
resource_group_name = var.resource_group_name
access_tier = "Hot"

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 = false
file = false
queue = true
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no private endpoint enabled for queues

Suggested change
queue = true
queue = false

table = true
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no private endpoint enabled for tables

Suggested change
table = true
table = false

}

force_public_network_access_enabled = true

tags = var.tags
}
Loading