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

[CES-68] Added configuration for APIM migration to itn #88

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions infra/resources/prod/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ data "azurerm_api_management" "apim" {
resource_group_name = "${local.project_legacy}-rg-internal"
}

data "azurerm_api_management" "apim_itn" {
name = local.apim_itn.name
resource_group_name = local.apim_itn.resource_group_name
}

data "azurerm_key_vault" "key_vault_common" {
name = "${local.project_legacy}-kv-common"
resource_group_name = "${local.project_legacy}-rg-common"
Expand Down
11 changes: 11 additions & 0 deletions infra/resources/prod/italynorth.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module "apim_itn" {
source = "../_modules/apim"

env_short = local.env_short

apim_name = data.azurerm_api_management.apim_itn.name
apim_resource_group_name = data.azurerm_api_management.apim_itn.resource_group_name

api_host_name = "api.io.pagopa.it"
mamu0 marked this conversation as resolved.
Show resolved Hide resolved
key_vault_common_id = data.azurerm_key_vault.key_vault_common.id
}
10 changes: 10 additions & 0 deletions infra/resources/prod/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ locals {
ManagementTeam = "IO Platform"
Source = "https://github.com/pagopa/io-functions-admin/blob/main/infra/resources/prod"
}

# ITN
location_itn = "italynorth"
location_short_itn = "itn"
project_itn = "${local.prefix}-${local.env_short}-${local.location_short_itn}"

apim_itn = {
name = "${local.project_itn}-apim-01"
resource_group_name = "${local.project_itn}-common-rg-01"
}
}
Loading