Skip to content

Commit

Permalink
[APIM-v2 MIGRATION] change reference to apim-v2 (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuraf authored Jun 27, 2024
1 parent a375808 commit 26150bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions infra/container_apps/apim.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
apim_name = format("selc-%s-apim", var.env_short)
apim_rg = format("selc-%s-api-rg", var.env_short)
apim_name = format("selc-%s-apim-v2", var.env_short)
apim_rg = format("selc-%s-api-v2-rg", var.env_short)
api_name = format("selc-%s-api-bff-proxy", var.env_short)
}

Expand All @@ -17,7 +17,7 @@ resource "azurerm_api_management_api_version_set" "apim_api_bff_proxy" {

module "apim_api_bff_proxy" {
count = var.is_pnpg ? 0 : 1
source = "github.com/pagopa/terraform-azurerm-v3.git//api_management_api?ref=v7.50.1"
source = "github.com/pagopa/terraform-azurerm-v3.git//api_management_api?ref=v8.18.0"
name = local.api_name
api_management_name = local.apim_name
resource_group_name = local.apim_rg
Expand Down
20 changes: 10 additions & 10 deletions infra/container_apps/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ module "container_app_party_reg_proxy" {
app_settings = var.app_settings
secrets_names = var.secrets_names
workload_profile_name = var.workload_profile_name
probes = [
probes = [
{
httpGet = {
path = "actuator/health"
port = 8080
scheme = "HTTP"
}
timeoutSeconds = 30
type = "Liveness"
failureThreshold = 3
timeoutSeconds = 30
type = "Liveness"
failureThreshold = 3
initialDelaySeconds = 1
},
{
Expand All @@ -41,9 +41,9 @@ module "container_app_party_reg_proxy" {
port = 8080
scheme = "HTTP"
}
timeoutSeconds = 30
type = "Readiness"
failureThreshold = 30
timeoutSeconds = 30
type = "Readiness"
failureThreshold = 30
initialDelaySeconds = 30
},
{
Expand All @@ -52,9 +52,9 @@ module "container_app_party_reg_proxy" {
port = 8080
scheme = "HTTP"
}
timeoutSeconds = 30
failureThreshold = 30
type = "Startup"
timeoutSeconds = 30
failureThreshold = 30
type = "Startup"
initialDelaySeconds = 60
}
]
Expand Down

0 comments on commit 26150bc

Please sign in to comment.