Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 04_apim_ecommerce_webview.tf #2652

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/domains/ecommerce-app/04_apim_ecommerce_webview.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,30 @@ module "apim_ecommerce_webview_api_v1" {
ecommerce_ingress_hostname = local.ecommerce_hostname
})
}

module "apim_ecommerce_webview_api_v2" {
source = "./.terraform/modules/__v3__/api_management_api"

name = "${local.project}-ecommerce-webview-api"
resource_group_name = local.pagopa_apim_rg
api_management_name = local.pagopa_apim_name
product_ids = [module.apim_ecommerce_webview_product.product_id]
subscription_required = local.apim_ecommerce_webview_api.subscription_required
version_set_id = azurerm_api_management_api_version_set.apim_ecommerce_webview_api.id
api_version = "v2"
service_url = local.apim_ecommerce_webview_api.service_url

description = local.apim_ecommerce_webview_api.description
display_name = local.apim_ecommerce_webview_api.display_name
path = local.apim_ecommerce_webview_api.path
protocols = ["https"]

content_format = "openapi"
content_value = templatefile("./api/ecommerce-webview/v2/_openapi.json.tpl", {
host = local.apim_hostname
})

xml_content = templatefile("./api/ecommerce-webview/v2/_base_policy.xml.tpl", {
ecommerce_ingress_hostname = local.ecommerce_hostname
})
}
Loading