Skip to content

Commit

Permalink
Merge branch 'main' into ces-126-scale-app-gw-for-wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-calabrese authored Oct 4, 2024
2 parents 572e107 + 827ba78 commit 06e2526
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/common/_modules/app_backend/data_kv.tf
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,4 @@ data "azurerm_key_vault_secret" "app_backend_PRE_SHARED_KEY" {
data "azurerm_key_vault_secret" "app_backend_TRIAL_SYSTEM_APIM_KEY" {
name = "appbackend-TRIAL-SYSTEM-APIM-KEY"
key_vault_id = var.key_vault_common.id
}
}
6 changes: 3 additions & 3 deletions src/common/_modules/cosmos_api/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ locals {
partition_key_version = null
default_ttl = -1
autoscale_settings = {
max_throughput = 67000
max_throughput = 200000
}
},
{
Expand All @@ -72,7 +72,7 @@ locals {
partition_key_version = null
default_ttl = -1
autoscale_settings = {
max_throughput = 46000
max_throughput = 100000
}
},
{
Expand Down Expand Up @@ -124,7 +124,7 @@ locals {
partition_key_path = "/fiscalCode"
partition_key_version = null
autoscale_settings = {
max_throughput = 48000
max_throughput = 100000
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/common/prod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
| [azurerm_resource_group.github_runner](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) | resource |
| [azurerm_api_management.trial_system](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/api_management) | data source |
| [azurerm_client_config.current](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/client_config) | data source |
| [azurerm_linux_function_app.app_messages](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/linux_function_app) | data source |
| [azurerm_linux_function_app.app_messages_xl](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/linux_function_app) | data source |
| [azurerm_linux_function_app.eucovidcert](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/linux_function_app) | data source |
| [azurerm_linux_function_app.function_assets_cdn](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/linux_function_app) | data source |
| [azurerm_linux_function_app.function_cgn](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/linux_function_app) | data source |
Expand Down
6 changes: 3 additions & 3 deletions src/common/prod/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ data "azurerm_linux_function_app" "function_profile" {
resource_group_name = "${local.project_itn}-profile-rg-0${count.index + 1}"
}

data "azurerm_linux_function_app" "app_messages" {
data "azurerm_linux_function_app" "app_messages_xl" {
count = local.app_messages_count
name = "${local.project_weu_legacy}-app-messages-fn-${count.index + 1}"
resource_group_name = "${local.project_weu_legacy}-app-messages-rg-${count.index + 1}"
name = "${local.project_weu_legacy}-weu-com-citizen-func-0${count.index + 1}"
resource_group_name = "${local.project_weu_legacy}-weu-com-rg-01"
}

data "azurerm_linux_function_app" "services_app_backend_function_app" {
Expand Down
3 changes: 1 addition & 2 deletions src/common/prod/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ locals {

backend_hostnames = {
app = [for key, value in data.azurerm_linux_function_app.function_profile : value.default_hostname]
app_messages = [for key, value in data.azurerm_linux_function_app.app_messages : value.default_hostname]
app_messages = [for key, value in data.azurerm_linux_function_app.app_messages_xl : value.default_hostname]
assets_cdn = data.azurerm_linux_function_app.function_assets_cdn.default_hostname
services_app_backend = data.azurerm_linux_function_app.services_app_backend_function_app.default_hostname
lollipop = data.azurerm_linux_function_app.lollipop_function.default_hostname
Expand Down Expand Up @@ -264,4 +264,3 @@ locals {
}
]
}

3 changes: 1 addition & 2 deletions src/common/prod/westeurope.tf
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,7 @@ module "application_gateway_weu" {

backend_hostnames = {
firmaconio_selfcare_web_app = [data.azurerm_linux_web_app.firmaconio_selfcare_web_app.default_hostname]
# app_backends = [for appbe in module.app_backend_weu : appbe.default_hostname]
app_backends = [module.app_backend_weu["1"].default_hostname, module.app_backend_weu["2"].default_hostname]
app_backends = [for appbe in module.app_backend_weu : appbe.default_hostname]
}
certificates = {
api = "api-io-pagopa-it"
Expand Down

0 comments on commit 06e2526

Please sign in to comment.