From c43e878133289d837b893b96964b4d2066b6721d Mon Sep 17 00:00:00 2001 From: Pasquale Spica <36746022+pasqualespica@users.noreply.github.com> Date: Wed, 4 Dec 2024 10:11:22 +0100 Subject: [PATCH] feat: Add Status Page Improvement API Key for Backoffice Helpdesk (#2627) add Status Page Improvement API Key for Backoffice Helpdesk --- .../selfcare-app/04_apim_backoffice_external.tf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/domains/selfcare-app/04_apim_backoffice_external.tf b/src/domains/selfcare-app/04_apim_backoffice_external.tf index febc5a326..dd64d76a8 100644 --- a/src/domains/selfcare-app/04_apim_backoffice_external.tf +++ b/src/domains/selfcare-app/04_apim_backoffice_external.tf @@ -70,3 +70,17 @@ module "apim_selfcare_backoffice_helpdesk_product" { policy_xml = file("./api_product/_base_policy.xml") } + +# SubKey 4 https://uptime.betterstack.com/team/263223/monitors recover maintenance +# Status Page Improvement https://pagopa.atlassian.net/wiki/x/AoBBSQ +resource "azurerm_api_management_subscription" "status_page_improvement_api_key_subkey" { + count = var.env_short == "p" ? 1 : 0 + + api_management_name = local.pagopa_apim_name + resource_group_name = local.pagopa_apim_rg + + product_id = module.apim_selfcare_backoffice_helpdesk_product.id + display_name = "Status Page Improvement API Key for Backoffice Helpdesk" + allow_tracing = false + state = "active" +} \ No newline at end of file