From 75a300b4d6e539ceef40edd5a147373fb091e7a0 Mon Sep 17 00:00:00 2001 From: Gianmaria Scorza Date: Thu, 21 Nov 2024 15:17:01 +0100 Subject: [PATCH 1/2] Add listeners and routes for ipatente vehicles and licences application on io-p-appgateway --- .../_modules/application_gateway/main.tf | 74 +++++++++---------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/src/common/_modules/application_gateway/main.tf b/src/common/_modules/application_gateway/main.tf index be1922714..f96fcbb72 100644 --- a/src/common/_modules/application_gateway/main.tf +++ b/src/common/_modules/application_gateway/main.tf @@ -412,31 +412,31 @@ module "app_gw" { } } - # vehicles-ipatente-io-pagopa-it = { - # protocol = "Https" - # host = format("vehicles.%s", var.public_dns_zones.ipatente_io_pagopa_it.name) - # port = 443 - # ssl_profile_name = format("%s-ssl-profile", var.project) - # firewall_policy_id = null - - # certificate = { - # name = var.certificates.vehicles_ipatente_io_pagopa_it - # id = data.azurerm_key_vault_certificate.app_gw_vehicles_ipatente_io.versionless_secret_id - # } - # } - - # licences-ipatente-io-pagopa-it = { - # protocol = "Https" - # host = format("licences.%s", var.public_dns_zones.ipatente_io_pagopa_it.name) - # port = 443 - # ssl_profile_name = format("%s-ssl-profile", var.project) - # firewall_policy_id = null - - # certificate = { - # name = var.certificates.licences_ipatente_io_pagopa_it - # id = data.azurerm_key_vault_certificate.app_gw_licences_ipatente_io.versionless_secret_id - # } - # } + vehicles-ipatente-io-pagopa-it = { + protocol = "Https" + host = format("vehicles.%s", var.public_dns_zones.ipatente_io_pagopa_it.name) + port = 443 + ssl_profile_name = format("%s-ssl-profile", var.project) + firewall_policy_id = null + + certificate = { + name = var.certificates.vehicles_ipatente_io_pagopa_it + id = data.azurerm_key_vault_certificate.app_gw_vehicles_ipatente_io.versionless_secret_id + } + } + + licences-ipatente-io-pagopa-it = { + protocol = "Https" + host = format("licences.%s", var.public_dns_zones.ipatente_io_pagopa_it.name) + port = 443 + ssl_profile_name = format("%s-ssl-profile", var.project) + firewall_policy_id = null + + certificate = { + name = var.certificates.licences_ipatente_io_pagopa_it + id = data.azurerm_key_vault_certificate.app_gw_licences_ipatente_io.versionless_secret_id + } + } } # maps listener to backend @@ -513,19 +513,19 @@ module "app_gw" { priority = 120 } - # vehicles-ipatente-io-pagopa-it = { - # listener = "vehicles-ipatente-io-pagopa-it" - # backend = "vehicles-ipatente-io-app" - # rewrite_rule_set_name = "rewrite-rule-set-vehicles-ipatente-io-app" - # priority = 130 - # } + vehicles-ipatente-io-pagopa-it = { + listener = "vehicles-ipatente-io-pagopa-it" + backend = "vehicles-ipatente-io-app" + rewrite_rule_set_name = "rewrite-rule-set-vehicles-ipatente-io-app" + priority = 130 + } - # licences-ipatente-io-pagopa-it = { - # listener = "licences-ipatente-io-pagopa-it" - # backend = "licences-ipatente-io-app" - # rewrite_rule_set_name = "rewrite-rule-set-licences-ipatente-io-app" - # priority = 140 - # } + licences-ipatente-io-pagopa-it = { + listener = "licences-ipatente-io-pagopa-it" + backend = "licences-ipatente-io-app" + rewrite_rule_set_name = "rewrite-rule-set-licences-ipatente-io-app" + priority = 140 + } } routes_path_based = { From 87c75a333a49e7e93ca62d412ab39079c376bbdc Mon Sep 17 00:00:00 2001 From: Andrea Grillo Date: Thu, 21 Nov 2024 16:36:01 +0100 Subject: [PATCH 2/2] update priority --- src/common/_modules/application_gateway/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/_modules/application_gateway/main.tf b/src/common/_modules/application_gateway/main.tf index f96fcbb72..7af1920e9 100644 --- a/src/common/_modules/application_gateway/main.tf +++ b/src/common/_modules/application_gateway/main.tf @@ -524,7 +524,7 @@ module "app_gw" { listener = "licences-ipatente-io-pagopa-it" backend = "licences-ipatente-io-app" rewrite_rule_set_name = "rewrite-rule-set-licences-ipatente-io-app" - priority = 140 + priority = 131 } }