Skip to content

Commit

Permalink
Merge pull request #5 from pagopa/fix_infra_product
Browse files Browse the repository at this point in the history
using pagopa-wisp-converter product
  • Loading branch information
lorenzo-catalano authored Apr 9, 2024
2 parents 27dcea8 + bdd3ddc commit 90ff804
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions infra/04_apim_api_rest.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "azurerm_api_management_api_version_set" "api_wispsoapconverter_api_res
name = format("%s-wisp-soap-converter-rest-api", var.env_short)
resource_group_name = local.apim.rg
api_management_name = local.apim.name
display_name = "${local.wispsoapconverter_locals.display_name} - WSC rest"
display_name = "${local.wispsoapconverter_locals.display_name} - rest (INTERNAL)"
versioning_scheme = "Segment"
}

Expand All @@ -18,7 +18,7 @@ module "apim_api_wispsoapconverter_api_v1_rest" {
api_version = "v1"

description = local.wispsoapconverter_locals.description
display_name = "${local.wispsoapconverter_locals.display_name} - rest"
display_name = "${local.wispsoapconverter_locals.display_name} - rest (INTERNAL)"

path = local.wispsoapconverter_locals.rest_path
protocols = ["https"]
Expand Down
4 changes: 2 additions & 2 deletions infra/04_apim_api_soap.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "azurerm_api_management_api_version_set" "api_wispsoapconverter_api_soa
name = format("%s-wisp-soap-converter-soap-api", var.env_short)
resource_group_name = local.apim.rg
api_management_name = local.apim.name
display_name = "${local.wispsoapconverter_locals.display_name} - WSC soap"
display_name = "${local.wispsoapconverter_locals.display_name} - soap (INTERNAL)"
versioning_scheme = "Segment"
}

Expand All @@ -18,7 +18,7 @@ resource "azurerm_api_management_api" "api_wispsoapconverter_api_soap_v1_dev" {
revision = "1"

description = local.wispsoapconverter_locals.description
display_name = "${local.wispsoapconverter_locals.display_name} - soap"
display_name = "${local.wispsoapconverter_locals.display_name} - soap (INTERNAL)"
path = local.wispsoapconverter_locals.soap_path
protocols = ["https"]

Expand Down
4 changes: 2 additions & 2 deletions infra/99_locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ locals {
apim = {
name = "${local.product}-apim"
rg = "${local.product}-api-rg"
product_id = "wisp_soap_converter"
product_id = "pagopa-wisp-converter"
hostname = "api.${var.apim_dns_zone_prefix}.${var.external_domain}"
}
wispsoapconverter_locals = {
hostname = var.env == "prod" ? "weuprod.nodo.internal.platform.pagopa.it" : "weu${var.env}.nodo.internal.${var.env}.platform.pagopa.it"

product_id = "wisp_soap_converter"
product_id = "pagopa-wisp-converter"
display_name = "WISP Soap Converter"
description = "Wisp soap converter"
subscription_required = true
Expand Down

0 comments on commit 90ff804

Please sign in to comment.