Skip to content

Commit

Permalink
feat: Upgradded selfcare-app tf provider (#2597)
Browse files Browse the repository at this point in the history
Upgradded selfcare-app tf provider
  • Loading branch information
mamari90 authored Nov 25, 2024
1 parent e465fda commit fdbdc39
Show file tree
Hide file tree
Showing 11 changed files with 135 additions and 104 deletions.
167 changes: 94 additions & 73 deletions src/domains/selfcare-app/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/domains/selfcare-app/02_namespace.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "kubernetes_namespace" "namespace" {
}

module "pod_identity" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//kubernetes_pod_identity?ref=v8.15.1"
source = "./.terraform/modules/__v3__/kubernetes_pod_identity"

resource_group_name = local.aks_resource_group_name
location = var.location
Expand Down
2 changes: 1 addition & 1 deletion src/domains/selfcare-app/04_apim_backoffice.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ locals {


module "apim_selfcare_product" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product?ref=v8.15.1"
source = "./.terraform/modules/__v3__/api_management_product"

product_id = "selfcare-be"
display_name = local.apim_selfcare_pagopa_api.display_name
Expand Down
6 changes: 3 additions & 3 deletions src/domains/selfcare-app/04_apim_backoffice_external.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ locals {


module "apim_selfcare_backoffice_external_psp_product" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product?ref=v8.15.1"
source = "./.terraform/modules/__v3__/api_management_product"

product_id = "selfcare-bo-external-psp"
display_name = local.apim_selfcare_backoffice_external_api_psp.display_name
Expand All @@ -36,7 +36,7 @@ module "apim_selfcare_backoffice_external_psp_product" {
}

module "apim_selfcare_backoffice_external_ec_product" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product?ref=v8.15.1"
source = "./.terraform/modules/__v3__/api_management_product"

product_id = "selfcare-bo-external-ec"
display_name = local.apim_selfcare_backoffice_external_api_ec.display_name
Expand All @@ -54,7 +54,7 @@ module "apim_selfcare_backoffice_external_ec_product" {
}

module "apim_selfcare_backoffice_helpdesk_product" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//api_management_product?ref=v8.15.1"
source = "./.terraform/modules/__v3__/api_management_product"

product_id = "selfcare-bo-helpdesk"
display_name = local.apim_selfcare_backoffice_helpdesk_api.display_name
Expand Down
2 changes: 1 addition & 1 deletion src/domains/selfcare-app/06_selfcare-fe.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ locals {
// public storage used to serve FE
#tfsec:ignore:azure-storage-default-action-deny
module "selfcare_cdn" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//cdn?ref=v8.15.1"
source = "./.terraform/modules/__v3__/cdn"
count = var.selfcare_fe_enabled ? 1 : 0

name = "selfcare"
Expand Down
2 changes: 1 addition & 1 deletion src/domains/selfcare-app/10_aks_middleware_tools.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "tls_checker" {
source = "git::https://github.com/pagopa/terraform-azurerm-v3.git//tls_checker?ref=v8.15.1"
source = "./.terraform/modules/__v3__/tls_checker"

https_endpoint = local.selfcare_hostname
alert_name = local.selfcare_hostname
Expand Down
11 changes: 8 additions & 3 deletions src/domains/selfcare-app/99_main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ terraform {
required_providers {
null = {
source = "hashicorp/null"
version = "= 3.1.1"
version = "= 3.2.0"
}
azurerm = {
source = "hashicorp/azurerm"
version = "<= 3.100.0"
version = "<= 3.116.0"
}
azuread = {
source = "hashicorp/azuread"
Expand All @@ -18,7 +18,7 @@ terraform {
}
helm = {
source = "hashicorp/helm"
version = "= 2.5.1"
version = "<= 2.12.1"
}
}

Expand Down Expand Up @@ -46,3 +46,8 @@ provider "helm" {
config_path = "${var.k8s_kube_config_path_prefix}/config-${local.aks_name}"
}
}

module "__v3__" {
# v8.59.0
source = "git::https://github.com/pagopa/terraform-azurerm-v3?ref=3fc1dafaf4354e24ca8673005ec0caf4106343a3"
}
Loading

0 comments on commit fdbdc39

Please sign in to comment.