diff --git a/infra/04_apim_api.tf b/infra/04_apim_api.tf index eb7fc05..90c94b9 100644 --- a/infra/04_apim_api.tf +++ b/infra/04_apim_api.tf @@ -125,13 +125,19 @@ module "apim_api_backoffice_external_ec_api_v1" { ] } +#fetch technical support api product APIM product +data "azurerm_api_management_product" "technical_support_api_product" { + product_id = "technical_support_api" + resource_group_name = local.apim.rg + api_management_name = local.apim.name +} module "apim_api_backoffice_helpdesk_api_v1" { source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_api?ref=v6.4.1" name = format("%s-backoffice-helpdesk-api", var.env_short) api_management_name = local.apim.name resource_group_name = local.apim.rg - product_ids = [local.apim.bo_helpdesk_product_id] + product_ids = [data.azurerm_api_management_product.technical_support_api_product.product_id] subscription_required = local.apim_backoffice_helpdesk_api.subscription_required version_set_id = azurerm_api_management_api_version_set.api_backoffice_helpdesk_api.id api_version = "v1"