Skip to content

Commit

Permalink
feat: new storage to support pm migration in history ecommerce (#2718)
Browse files Browse the repository at this point in the history
  • Loading branch information
infantesimone authored Jan 14, 2025
1 parent f06074d commit b4e3f0d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/domains/ecommerce-common/03_storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -558,3 +558,33 @@ resource "azurerm_monitor_metric_alert" "queue_storage_account_average_messge_co
skip_metric_validation = false
}
}

## storage to support pm transaction migration for helpdesk-service
module "ecommerce_pm_history_storage" {
count = var.env_short == "p" ? 1 : 0
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account?ref=v6.7.0"

name = replace("${local.project}-pm-h-sa", "-", "")
account_kind = "StorageV2"
account_tier = "Standard"
account_replication_type = "GZRS"
access_tier = "Hot"
blob_versioning_enabled = true
resource_group_name = azurerm_resource_group.storage_ecommerce_rg.name
location = var.location
advanced_threat_protection = true
allow_nested_items_to_be_public = false
public_network_access_enabled = true
blob_delete_retention_days = 30

network_rules = null

tags = var.tags
}

## table#1 storage pm-transaction-ecommerce-history-logs
resource "azurerm_storage_table" "pm_history_ingestion_log_table" {
count = var.env_short == "p" ? 1 : 0
name = "pmHistoryIngestionLogTable"
storage_account_name = module.ecommerce_pm_history_storage[0].name
}
2 changes: 2 additions & 0 deletions src/domains/ecommerce-common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
| <a name="module_cosmosdb_ecommerce_collections"></a> [cosmosdb\_ecommerce\_collections](#module\_cosmosdb\_ecommerce\_collections) | git::https://github.com/pagopa/terraform-azurerm-v3.git//cosmosdb_mongodb_collection | v6.7.0 |
| <a name="module_cosmosdb_ecommerce_history_collections"></a> [cosmosdb\_ecommerce\_history\_collections](#module\_cosmosdb\_ecommerce\_history\_collections) | git::https://github.com/pagopa/terraform-azurerm-v3.git//cosmosdb_mongodb_collection | v6.7.0 |
| <a name="module_cosmosdb_ecommerce_snet"></a> [cosmosdb\_ecommerce\_snet](#module\_cosmosdb\_ecommerce\_snet) | git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet | v6.7.0 |
| <a name="module_ecommerce_pm_history_storage"></a> [ecommerce\_pm\_history\_storage](#module\_ecommerce\_pm\_history\_storage) | git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account | v6.7.0 |
| <a name="module_ecommerce_storage_deadletter"></a> [ecommerce\_storage\_deadletter](#module\_ecommerce\_storage\_deadletter) | git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account | v6.7.0 |
| <a name="module_ecommerce_storage_snet"></a> [ecommerce\_storage\_snet](#module\_ecommerce\_storage\_snet) | git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet | v6.7.0 |
| <a name="module_ecommerce_storage_transient"></a> [ecommerce\_storage\_transient](#module\_ecommerce\_storage\_transient) | git::https://github.com/pagopa/terraform-azurerm-v3.git//storage_account | v6.7.0 |
Expand Down Expand Up @@ -127,6 +128,7 @@
| [azurerm_storage_queue.transactions_refund_queue_blue](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_queue) | resource |
| [azurerm_storage_queue.transactions_refund_retry_queue](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_queue) | resource |
| [azurerm_storage_queue.transactions_refund_retry_queue_blue](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_queue) | resource |
| [azurerm_storage_table.pm_history_ingestion_log_table](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_table) | resource |
| [azuread_group.adgroup_admin](https://registry.terraform.io/providers/hashicorp/azuread/2.38.0/docs/data-sources/group) | data source |
| [azuread_group.adgroup_developers](https://registry.terraform.io/providers/hashicorp/azuread/2.38.0/docs/data-sources/group) | data source |
| [azuread_group.adgroup_externals](https://registry.terraform.io/providers/hashicorp/azuread/2.38.0/docs/data-sources/group) | data source |
Expand Down

0 comments on commit b4e3f0d

Please sign in to comment.