Skip to content

Commit

Permalink
fix storage account
Browse files Browse the repository at this point in the history
  • Loading branch information
aomegax committed Apr 2, 2024
1 parent 5514da1 commit f65bffe
Show file tree
Hide file tree
Showing 22 changed files with 137 additions and 44 deletions.
2 changes: 1 addition & 1 deletion src/domains/gps-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
| <a name="input_location_string"></a> [location\_string](#input\_location\_string) | One of West Europe, North Europe | `string` | n/a | yes |
| <a name="input_log_analytics_workspace_name"></a> [log\_analytics\_workspace\_name](#input\_log\_analytics\_workspace\_name) | Specifies the name of the Log Analytics Workspace. | `string` | n/a | yes |
| <a name="input_log_analytics_workspace_resource_group_name"></a> [log\_analytics\_workspace\_resource\_group\_name](#input\_log\_analytics\_workspace\_resource\_group\_name) | The name of the resource group in which the Log Analytics workspace is located in. | `string` | n/a | yes |
| <a name="input_monitor_resource_group_name"></a> [monitor\_resource\_group\_name](#input\_monitor\_resource\_group\_name) | Monitor resource group name | `string` | n/a | yes |
| <a name="input_monitor_resource_group_name"></a> [monitor\_resource\_group\_name](#input\_monitor\_resource\_group\_name) | Monitor resource group name | `string` | `"pagopa-p-monitor-rg"` | no |
| <a name="input_pgbouncer_enabled"></a> [pgbouncer\_enabled](#input\_pgbouncer\_enabled) | Built-in connection pooling solution | `bool` | `false` | no |
| <a name="input_pod_disruption_budgets"></a> [pod\_disruption\_budgets](#input\_pod\_disruption\_budgets) | Pod disruption budget for domain namespace | <pre>map(object({<br> name = optional(string, null)<br> minAvailable = optional(number, null)<br> matchLabels = optional(map(any), {})<br> }))</pre> | `{}` | no |
| <a name="input_prefix"></a> [prefix](#input\_prefix) | n/a | `string` | n/a | yes |
Expand Down
8 changes: 4 additions & 4 deletions src/domains/nodo-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
| <a name="module_apim_mock_psp_product_replica"></a> [apim\_mock\_psp\_product\_replica](#module\_apim\_mock\_psp\_product\_replica) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product | v6.4.1 |
| <a name="module_apim_mock_psp_secondary_product"></a> [apim\_mock\_psp\_secondary\_product](#module\_apim\_mock\_psp\_secondary\_product) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product | v6.4.1 |
| <a name="module_apim_mock_psp_secondary_product_replica"></a> [apim\_mock\_psp\_secondary\_product\_replica](#module\_apim\_mock\_psp\_secondary\_product\_replica) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product | v6.4.1 |
| <a name="module_apim_nodo_dei_pagamenti_monitoring_product"></a> [apim\_nodo\_dei\_pagamenti\_monitoring\_product](#module\_apim\_nodo\_dei\_pagamenti\_monitoring\_product) | git::https://github.com/pagopa/azurerm.git//api_management_product | v1.0.90 |
| <a name="module_apim_nodo_dei_pagamenti_product"></a> [apim\_nodo\_dei\_pagamenti\_product](#module\_apim\_nodo\_dei\_pagamenti\_product) | git::https://github.com/pagopa/azurerm.git//api_management_product | v1.0.90 |
| <a name="module_apim_nodo_dei_pagamenti_monitoring_product"></a> [apim\_nodo\_dei\_pagamenti\_monitoring\_product](#module\_apim\_nodo\_dei\_pagamenti\_monitoring\_product) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product | v7.72.1 |
| <a name="module_apim_nodo_dei_pagamenti_product"></a> [apim\_nodo\_dei\_pagamenti\_product](#module\_apim\_nodo\_dei\_pagamenti\_product) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product | v7.72.1 |
| <a name="module_apim_nodo_dei_pagamenti_product_auth"></a> [apim\_nodo\_dei\_pagamenti\_product\_auth](#module\_apim\_nodo\_dei\_pagamenti\_product\_auth) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product | v7.60.0 |
| <a name="module_apim_nodo_dei_pagamenti_product_dev"></a> [apim\_nodo\_dei\_pagamenti\_product\_dev](#module\_apim\_nodo\_dei\_pagamenti\_product\_dev) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product | v7.60.0 |
| <a name="module_apim_nodo_dei_pagamenti_product_ndp"></a> [apim\_nodo\_dei\_pagamenti\_product\_ndp](#module\_apim\_nodo\_dei\_pagamenti\_product\_ndp) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product | v6.4.1 |
Expand All @@ -53,7 +53,7 @@
| <a name="module_apim_nodo_fatturazione_dev_api"></a> [apim\_nodo\_fatturazione\_dev\_api](#module\_apim\_nodo\_fatturazione\_dev\_api) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_api | v7.60.0 |
| <a name="module_apim_nodo_fatturazione_dev_product"></a> [apim\_nodo\_fatturazione\_dev\_product](#module\_apim\_nodo\_fatturazione\_dev\_product) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product | v7.60.0 |
| <a name="module_apim_nodo_fatturazione_product"></a> [apim\_nodo\_fatturazione\_product](#module\_apim\_nodo\_fatturazione\_product) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product | v7.60.0 |
| <a name="module_apim_nodo_monitoring_api"></a> [apim\_nodo\_monitoring\_api](#module\_apim\_nodo\_monitoring\_api) | git::https://github.com/pagopa/azurerm.git//api_management_api | v1.0.90 |
| <a name="module_apim_nodo_monitoring_api"></a> [apim\_nodo\_monitoring\_api](#module\_apim\_nodo\_monitoring\_api) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_api | v7.72.1 |
| <a name="module_apim_nodo_monitoring_api_dev"></a> [apim\_nodo\_monitoring\_api\_dev](#module\_apim\_nodo\_monitoring\_api\_dev) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_api | v7.60.0 |
| <a name="module_apim_nodo_monitoring_api_ndp"></a> [apim\_nodo\_monitoring\_api\_ndp](#module\_apim\_nodo\_monitoring\_api\_ndp) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_api | v6.4.1 |
| <a name="module_apim_nodo_monitoring_api_replica_ndp"></a> [apim\_nodo\_monitoring\_api\_replica\_ndp](#module\_apim\_nodo\_monitoring\_api\_replica\_ndp) | git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_api | v6.4.1 |
Expand Down Expand Up @@ -103,7 +103,7 @@
| <a name="module_nodo_verifyko_to_tablestorage_function_slot_staging"></a> [nodo\_verifyko\_to\_tablestorage\_function\_slot\_staging](#module\_nodo\_verifyko\_to\_tablestorage\_function\_slot\_staging) | git::https://github.com/pagopa/terraform-azurerm-v3.git//function_app_slot | v7.33.0 |
| <a name="module_nodo_verifyko_to_tablestorage_function_snet"></a> [nodo\_verifyko\_to\_tablestorage\_function\_snet](#module\_nodo\_verifyko\_to\_tablestorage\_function\_snet) | git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet | v6.4.1 |
| <a name="module_pod_identity"></a> [pod\_identity](#module\_pod\_identity) | git::https://github.com/pagopa/terraform-azurerm-v3.git//kubernetes_pod_identity | v6.4.1 |
| <a name="module_route_table_peering_nexi"></a> [route\_table\_peering\_nexi](#module\_route\_table\_peering\_nexi) | git::https://github.com/pagopa/azurerm.git//route_table | v1.0.90 |
| <a name="module_route_table_peering_nexi"></a> [route\_table\_peering\_nexi](#module\_route\_table\_peering\_nexi) | git::https://github.com/pagopa/terraform-azurerm-v3.git//route_table | v7.72.1 |
| <a name="module_tls_checker"></a> [tls\_checker](#module\_tls\_checker) | git::https://github.com/pagopa/terraform-azurerm-v3.git//tls_checker | v5.5.2 |
| <a name="module_vmss_snet"></a> [vmss\_snet](#module\_vmss\_snet) | git::https://github.com/pagopa/terraform-azurerm-v3.git//subnet | v6.4.1 |

Expand Down
4 changes: 2 additions & 2 deletions src/domains/nodo-common/03_cosmosdb_wisp_converter.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "cosmosdb_account_wispconv" {
count = var.enable_wisp_converter ? 1 : 0
count = var.enable_wisp_converter ? 1 : 0

source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//cosmosdb_account?ref=v6.7.0"
domain = var.domain
Expand Down Expand Up @@ -66,7 +66,7 @@ locals {
# cosmosdb container for stand-in datastore
module "cosmosdb_account_wispconv_containers" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//cosmosdb_sql_container?ref=v6.7.0"
for_each = { for c in local.wispconv_containers : c.name => c }
for_each = { for c in local.wispconv_containers : c.name => c if var.enable_wisp_converter }

name = each.value.name
resource_group_name = azurerm_resource_group.wisp_converter_rg[0].name
Expand Down
4 changes: 2 additions & 2 deletions src/domains/nodo-common/03_storage_account_nodo_cfg_sync.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ resource "azurerm_private_endpoint" "nodo_cfg_sync_re_private_endpoint_container

private_dns_zone_group {
name = "${local.project}-cfg-sync-re-private-dns-zone-group-container"
private_dns_zone_ids = [data.azurerm_private_dns_zone.privatelink_table_azure_com.id]
private_dns_zone_ids = [data.azurerm_private_dns_zone.privatelink_blob_azure_com.id]
}

private_service_connection {
name = "${local.project}-cfg-sync-re-private-service-connection-container"
private_connection_resource_id = module.nodo_cfg_sync_re_storage_account.id
is_manual_connection = false
subresource_names = ["container"]
subresource_names = ["blob"]
}

tags = var.tags
Expand Down
6 changes: 4 additions & 2 deletions src/domains/nodo-common/03_storage_account_wisp_converter.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ resource "azurerm_private_endpoint" "wispconv_private_endpoint_container" {

private_dns_zone_group {
name = "${local.project}-wisp-converter-private-dns-zone-group-container"
private_dns_zone_ids = [data.azurerm_private_dns_zone.privatelink_table_azure_com.id]
private_dns_zone_ids = [data.azurerm_private_dns_zone.privatelink_blob_azure_com.id]
}

private_service_connection {
name = "${local.project}-wisp-converter-private-service-connection-container"
private_connection_resource_id = module.wisp_converter_storage_account[0].id
is_manual_connection = false
subresource_names = ["container"]
subresource_names = ["blob"]
}

tags = var.tags
Expand All @@ -61,6 +61,7 @@ resource "azurerm_private_endpoint" "wispconv_private_endpoint_container" {

# table wispconverter
resource "azurerm_storage_table" "wisp_converter_table" {
count = var.enable_wisp_converter ? 1 : 0
name = "events"
storage_account_name = module.wisp_converter_storage_account[0].name

Expand All @@ -71,6 +72,7 @@ resource "azurerm_storage_table" "wisp_converter_table" {

# blob wispconverter
resource "azurerm_storage_container" "wisp_converter_container" {
count = var.enable_wisp_converter ? 1 : 0
name = "payloads"
storage_account_name = module.wisp_converter_storage_account[0].name

Expand Down
Loading

0 comments on commit f65bffe

Please sign in to comment.