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-214] Added new storage account iopweumessagesnotifst for ITN migration #1265

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/domains/messages-common/04_storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,28 @@ resource "azurerm_key_vault_secret" "push_notifications_storage_connection_strin

key_vault_id = module.key_vault.id
}

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

environment = local.itn_environment
tier = "l"
resource_group_name = "${local.prefix}-${local.env_short}-${local.location}-messages-notifications-rg"

force_public_network_access_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.

I know it's currently enabled, but I would disable it in the new one.
@lucacavallaro @Garma00 sounds good?

subnet_pep_id = module.common_values.pep_subnets.itn.id
private_dns_zone_resource_group_name = module.common_values.resource_groups.weu.common

access_tier = "Hot"
subservices_enabled = {
queue = true
}

tags = var.tags
}

resource "azurerm_storage_queue" "push_notifications_queue_itn" {
name = "push-notifications"
storage_account_name = module.push_notifications_storage_itn.name
}
Empty file.
14 changes: 13 additions & 1 deletion src/domains/messages-common/99_locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,16 @@ locals {

apim_v2_name = "${local.product}-apim-v2-api"
apim_resource_group_name = "${local.product}-rg-internal"
}

secondary_location = "italynorth"
app_name = "notif"

itn_environment = {
prefix = var.prefix
env_short = var.env_short
location = local.secondary_location
app_name = local.app_name
domain = "messages"
instance_number = "01"
}
}
4 changes: 4 additions & 0 deletions src/domains/messages-common/99_main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ provider "azurerm" {
data "azurerm_subscription" "current" {}

data "azurerm_client_config" "current" {}

module "common_values" {
source = "../../_modules/common_values"
}
2 changes: 2 additions & 0 deletions src/domains/messages-common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
| <a name="module_apim_v2_product_notifications"></a> [apim\_v2\_product\_notifications](#module\_apim\_v2\_product\_notifications) | github.com/pagopa/terraform-azurerm-v3//api_management_product | v8.27.0 |
| <a name="module_apim_v2_service_messages_internal_api_v1"></a> [apim\_v2\_service\_messages\_internal\_api\_v1](#module\_apim\_v2\_service\_messages\_internal\_api\_v1) | github.com/pagopa/terraform-azurerm-v3//api_management_api | v8.27.0 |
| <a name="module_apim_v2_service_messages_manage_api_v1"></a> [apim\_v2\_service\_messages\_manage\_api\_v1](#module\_apim\_v2\_service\_messages\_manage\_api\_v1) | github.com/pagopa/terraform-azurerm-v3//api_management_api | v8.27.0 |
| <a name="module_azure_storage_account"></a> [azure\_storage\_account](#module\_azure\_storage\_account) | github.com/pagopa/dx//infra/modules/azure_storage_account | main |
| <a name="module_common_values"></a> [common\_values](#module\_common\_values) | ../../_modules/common_values | n/a |
| <a name="module_cosmosdb_account_mongodb_reminder"></a> [cosmosdb\_account\_mongodb\_reminder](#module\_cosmosdb\_account\_mongodb\_reminder) | github.com/pagopa/terraform-azurerm-v3//cosmosdb_account | v8.27.0 |
| <a name="module_cosmosdb_account_remote_content"></a> [cosmosdb\_account\_remote\_content](#module\_cosmosdb\_account\_remote\_content) | github.com/pagopa/terraform-azurerm-v3//cosmosdb_account | v8.27.0 |
| <a name="module_cosmosdb_sql_database_remote_content"></a> [cosmosdb\_sql\_database\_remote\_content](#module\_cosmosdb\_sql\_database\_remote\_content) | github.com/pagopa/terraform-azurerm-v3//cosmosdb_sql_database | v8.27.0 |
Expand Down