Skip to content

Commit d8a9a91

Browse files
authored
[SELC-7498] chore: Update modules version (#281)
1 parent 836a788 commit d8a9a91

File tree

12 files changed

+206
-150
lines changed

12 files changed

+206
-150
lines changed

.terraform-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.6
1+
1.11.4

infra/container_apps/user-cdc/.terraform.lock.hcl

Lines changed: 29 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infra/container_apps/user-cdc/main.tf

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
terraform {
2-
required_version = ">= 1.6.0"
2+
required_version = ">= 1.9.0"
33

44
backend "azurerm" {}
55
}
66

77
provider "azurerm" {
88
features {}
9-
skip_provider_registration = true
10-
119
}
1210

1311
module "container_app_user_cdc" {
14-
source = "github.com/pagopa/selfcare-commons//infra/terraform-modules/container_app_microservice?ref=main"
12+
source = "github.com/pagopa/selfcare-commons//infra/terraform-modules/container_app_microservice?ref=v1.1.0"
1513

1614
is_pnpg = var.is_pnpg
1715

@@ -26,6 +24,9 @@ module "container_app_user_cdc" {
2624
secrets_names = var.secrets_names
2725
workload_profile_name = var.workload_profile_name
2826

27+
user_assigned_identity_id = data.azurerm_user_assigned_identity.cae_identity.id
28+
user_assigned_identity_principal_id = data.azurerm_user_assigned_identity.cae_identity.principal_id
29+
2930
probes = [
3031
{
3132
httpGet = {
@@ -64,3 +65,8 @@ module "container_app_user_cdc" {
6465

6566
tags = var.tags
6667
}
68+
69+
data "azurerm_user_assigned_identity" "cae_identity" {
70+
name = "${local.container_app_environment_name}-managed_identity"
71+
resource_group_name = local.ca_resource_group_name
72+
}

infra/container_apps/user-group-cdc/.terraform.lock.hcl

Lines changed: 29 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infra/container_apps/user-group-cdc/main.tf

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
terraform {
2-
required_version = ">= 1.6.0"
2+
required_version = ">= 1.9.0"
33

44
backend "azurerm" {}
55
}
66

77
provider "azurerm" {
88
features {}
9-
skip_provider_registration = true
10-
119
}
1210

1311
module "container_app_user_cdc" {
14-
source = "github.com/pagopa/selfcare-commons//infra/terraform-modules/container_app_microservice?ref=main"
12+
source = "github.com/pagopa/selfcare-commons//infra/terraform-modules/container_app_microservice?ref=v1.1.0"
1513

1614
env_short = var.env_short
1715
resource_group_name = local.ca_resource_group_name
@@ -24,6 +22,9 @@ module "container_app_user_cdc" {
2422
secrets_names = var.secrets_names
2523
workload_profile_name = var.workload_profile_name
2624

25+
user_assigned_identity_id = data.azurerm_user_assigned_identity.cae_identity.id
26+
user_assigned_identity_principal_id = data.azurerm_user_assigned_identity.cae_identity.principal_id
27+
2728
probes = [
2829
{
2930
httpGet = {
@@ -62,3 +63,9 @@ module "container_app_user_cdc" {
6263

6364
tags = var.tags
6465
}
66+
67+
68+
data "azurerm_user_assigned_identity" "cae_identity" {
69+
name = "${local.container_app_environment_name}-managed_identity"
70+
resource_group_name = local.ca_resource_group_name
71+
}

infra/container_apps/user-group-ms/.terraform.lock.hcl

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infra/container_apps/user-group-ms/main.tf

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
terraform {
2-
required_version = ">= 1.6.0"
2+
required_version = ">= 1.9.0"
33

44
backend "azurerm" {}
55
}
66

77
provider "azurerm" {
88
features {}
9-
skip_provider_registration = true
10-
119
}
1210

1311
module "container_app_user_group" {
14-
source = "github.com/pagopa/selfcare-commons//infra/terraform-modules/container_app_microservice?ref=main"
12+
source = "github.com/pagopa/selfcare-commons//infra/terraform-modules/container_app_microservice?ref=v1.1.0"
1513

1614
is_pnpg = var.is_pnpg
1715

@@ -26,5 +24,49 @@ module "container_app_user_group" {
2624
secrets_names = var.secrets_names
2725
workload_profile_name = var.workload_profile_name
2826

27+
user_assigned_identity_id = data.azurerm_user_assigned_identity.cae_identity.id
28+
user_assigned_identity_principal_id = data.azurerm_user_assigned_identity.cae_identity.principal_id
29+
30+
probes = [
31+
{
32+
httpGet = {
33+
path = "actuator/health"
34+
port = 8080
35+
scheme = "HTTP"
36+
}
37+
timeoutSeconds = 30
38+
type = "Liveness"
39+
failureThreshold = 3
40+
initialDelaySeconds = 1
41+
},
42+
{
43+
httpGet = {
44+
path = "actuator/health"
45+
port = 8080
46+
scheme = "HTTP"
47+
}
48+
timeoutSeconds = 30
49+
type = "Readiness"
50+
failureThreshold = 30
51+
initialDelaySeconds = 30
52+
},
53+
{
54+
httpGet = {
55+
path = "actuator/health"
56+
port = 8080
57+
scheme = "HTTP"
58+
}
59+
timeoutSeconds = 30
60+
failureThreshold = 30
61+
type = "Startup"
62+
initialDelaySeconds = 60
63+
}
64+
]
65+
2966
tags = var.tags
3067
}
68+
69+
data "azurerm_user_assigned_identity" "cae_identity" {
70+
name = "${local.container_app_environment_name}-managed_identity"
71+
resource_group_name = local.ca_resource_group_name
72+
}

infra/container_apps/user-group-ms/mongo_db.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resource "azurerm_management_lock" "mongodb_selc_user_group" {
1919
}
2020

2121
module "mongodb_collection_user-groups" {
22-
source = "github.com/pagopa/terraform-azurerm-v3.git//cosmosdb_mongodb_collection?ref=v7.50.1"
22+
source = "github.com/pagopa/terraform-azurerm-v4.git//cosmosdb_mongodb_collection?ref=v7.26.5"
2323

2424
name = "UserGroups"
2525
resource_group_name = local.mongo_db.mongodb_rg_name

infra/container_apps/user-group-ms/terraform.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)